diff options
author | João Távora <joaotavora@gmail.com> | 2019-10-29 00:18:55 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2019-10-29 00:19:33 +0000 |
commit | 5860fd3123635af3c2e419bfde53e26fde85930b (patch) | |
tree | 4b4a587f55b9a8bfcc773c0d160c8d49318f02e5 /lisp/icomplete.el | |
parent | 7373d6eae807af9f0557b28b30e2864f17114c40 (diff) | |
download | emacs-5860fd3123635af3c2e419bfde53e26fde85930b.tar.gz |
Make icomplete-exhibit actually work when navigating up directories
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.
Diffstat (limited to 'lisp/icomplete.el')
-rw-r--r-- | lisp/icomplete.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el index f2745fb30aa..02eae55a196 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -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: |