branch: externals/mct
commit ccce90db876256cf04216f2f9e8637c79ddafa84
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make line number selection always exit minibuffer
This avoids problems with dynamic completion, such as when inserting a
directory in find-file. We want to select it and exit, not continue
typing. Otherwise mct--line-completion will need to be refactored to
account for dynamic completion (how?) and for completing-read-multiple.
---
mct.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mct.el b/mct.el
index 9112987..e457057 100644
--- a/mct.el
+++ b/mct.el
@@ -452,7 +452,7 @@ minibuffer."
(with-current-buffer (window-buffer (mct--get-completion-window))
(goto-char (point-min))
(forward-line (1- n))
- (choose-completion)))
+ (mct-choose-completion-exit)))
(defun mct--line-bounds (n)
"Test if Nth line is in the buffer."