Don't replace user input when completion prefix is empty (Bug#18951)
* lisp/pcomplete.el (pcomplete-parse-arguments): Only replace user input if we produced a non-empty common completion stub.
This commit is contained in:
parent
ec6cf35c5f
commit
5d744e032f
1 changed files with 1 additions and 1 deletions
|
@ -772,7 +772,7 @@ this is `comint-dynamic-complete-functions'."
|
|||
(setq c (cdr c)))
|
||||
(setq pcomplete-stub (substring common-stub 0 len)
|
||||
pcomplete-autolist t)
|
||||
(when (and begin (not pcomplete-show-list))
|
||||
(when (and begin (> len 0) (not pcomplete-show-list))
|
||||
(delete-region begin (point))
|
||||
(pcomplete-insert-entry "" pcomplete-stub))
|
||||
(throw 'pcomplete-completions completions))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue