Skip to content

Commit f2a349b

Browse files
committed
Don't force completion recalculation in icomplete-fido-ret
Besides the adverse effect of delaying completions, it tripped up the useful logic of icomplete-force-complete-and-exit in the case where a default was available, but no completions calculated yet. * lisp/icomplete.el (icomplete-fido-ret): Don't force calculation of completions. (cherry picked from commit 13778aa)
1 parent 9b1053b commit f2a349b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lisp/icomplete.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,13 @@ require user confirmation."
276276
(interactive)
277277
(let* ((dir (and (eq (icomplete--category) 'file)
278278
(file-name-directory (icomplete--field-string))))
279-
(current (car (completion-all-sorted-completions)))
279+
(current (car completion-all-sorted-completions))
280280
(probe (and dir current
281281
(expand-file-name (directory-file-name current) dir))))
282282
(cond ((and probe (file-directory-p probe) (not (string= current "./")))
283283
(icomplete-force-complete))
284-
(current
285-
(icomplete-force-complete-and-exit))
286284
(t
287-
(exit-minibuffer)))))
285+
(icomplete-force-complete-and-exit)))))
288286

289287
(defun icomplete-fido-backward-updir ()
290288
"Delete char before or go up directory, like `ido-mode'."

0 commit comments

Comments
 (0)