eshell-complete-parse-arguments: don't use string-match on a list
When there is more than one candidate for completion, `val' is a list. Fixes bug#52794. * lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): protect use of string-match with stringp.
This commit is contained in:
parent
d4e2850b32
commit
ea65de7577
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ to writing a completion function."
|
|||
(setq val (number-to-string val)))
|
||||
;; expand .../ etc that only eshell understands to
|
||||
;; standard ../../
|
||||
((string-match "\\.\\.\\.+/" val)
|
||||
((and (stringp val)) (string-match "\\.\\.\\.+/" val)
|
||||
(setq val (eshell-expand-multiple-dots val))))
|
||||
(or val "")))
|
||||
args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue