diff options
author | Spencer Baugh <sbaugh@janestreet.com> | 2023-06-02 20:57:32 -0400 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-06-04 10:05:43 +0300 |
commit | 2a84ab905c8009db4d7df7b8f7cfb34c403081c8 (patch) | |
tree | e8e832831ca2aecc69d1547ea53e0b225e0317a3 /lisp/emacs-lisp/lisp-mnt.el | |
parent | 05f25238b7b53ab63b0b0aba455c8063d532a3a8 (diff) | |
download | emacs-2a84ab905c8009db4d7df7b8f7cfb34c403081c8.tar.gz emacs-2a84ab905c8009db4d7df7b8f7cfb34c403081c8.tar.bz2 emacs-2a84ab905c8009db4d7df7b8f7cfb34c403081c8.zip |
Handle point in last file-name component in minibuffer completion
This is a followup to commit e338a8ac41d4a9fd798dda90275abe75ac071335
(Handle point not at EOB in minibuffer-choose-completion).
That commit added a heuristic, but the heuristic was insufficient:
It still had the original wrong behavior when completing the last
file-name component (i.e., the completion category is 'file' and
there's no slash after point). This patch makes the heuristic
cover that case as well.
* lisp/minibuffer.el (minibuffer-next-completion)
(minibuffer-choose-completion): If in file completion and there's no
slash after point, clear what's after point when we complete.
(Bug#62700)
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions