* lisp/progmodes/project.el: Filter out empty strings from history (bug#58447)
(project--read-file-cpd-relative): Do not include empty strings (when prefix has the same length as the string).
This commit is contained in:
parent
23f7c9c2a9
commit
399433cc2b
1 changed files with 1 additions and 0 deletions
|
@ -1045,6 +1045,7 @@ by the user at will."
|
||||||
(mapcan
|
(mapcan
|
||||||
(lambda (s)
|
(lambda (s)
|
||||||
(and (string-prefix-p abbr-cpd s)
|
(and (string-prefix-p abbr-cpd s)
|
||||||
|
(not (eq (length abbr-cpd) (length s)))
|
||||||
(list (substring s (length abbr-cpd)))))
|
(list (substring s (length abbr-cpd)))))
|
||||||
(symbol-value hist))))
|
(symbol-value hist))))
|
||||||
(project--completing-read-strict prompt
|
(project--completing-read-strict prompt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue