fixed replacement of input line on spacebar press

This commit is contained in:
Nathan Shostek 2020-03-07 21:08:36 +01:00
parent 3c1fd2e02b
commit 38545872f5

View file

@ -791,7 +791,7 @@ functions are passed this structure as their first argument."
(completion
(emacs-style-command-complete
(car (split-seq (input-line-string input) " ")))))
(if (and (= 1 (length completion)))
(if (and toggle (= 1 (length completion)))
(progn
(input-replace-line input (car completion))
(input-insert-char input #\space))