]> git.eshelyaron.com Git - emacs.git/commit
Handle point in last file-name component in minibuffer completion
authorSpencer Baugh <sbaugh@janestreet.com>
Sat, 3 Jun 2023 00:57:32 +0000 (20:57 -0400)
committerEli Zaretskii <eliz@gnu.org>
Sun, 4 Jun 2023 07:05:43 +0000 (10:05 +0300)
commit2a84ab905c8009db4d7df7b8f7cfb34c403081c8
treee8e832831ca2aecc69d1547ea53e0b225e0317a3
parent05f25238b7b53ab63b0b0aba455c8063d532a3a8
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)
lisp/minibuffer.el