]> git.eshelyaron.com Git - emacs.git/commitdiff
Make icomplete-exhibit actually work when navigating up directories
authorJoão Távora <joaotavora@gmail.com>
Tue, 29 Oct 2019 00:18:55 +0000 (00:18 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 29 Oct 2019 00:19:33 +0000 (00:19 +0000)
Sometimes, when finding files with icomplete-mode, backward-deleting
the previous word or sexp (to move up a directory) doesn't actually
refresh the file list of the new directory.  Forcing redisplay in
icomplete-exhibit misteriously fixes the problem.

* lisp/icomplete.el (icomplete-exhibit): Add call to redisplay.

lisp/icomplete.el

index f2745fb30aa492652e6464665413fa03861ad62e..02eae55a196a089404527311b3f7a5f32f00a323 100644 (file)
@@ -399,6 +399,8 @@ Should be run via minibuffer `post-command-hook'.
 See `icomplete-mode' and `minibuffer-setup-hook'."
   (when (and icomplete-mode
              (icomplete-simple-completing-p)) ;Shouldn't be necessary.
+    (redisplay)     ; FIXME: why is this sometimes needed when moving
+                    ; up dirs in a file-finding table?
     (save-excursion
       (goto-char (point-max))
                                         ; Insert the match-status information: