mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-19 14:41:11 -08:00
(parse-colon-path): Turn empty substring into nil.
This commit is contained in:
parent
1a47fa1367
commit
e33e80e4a1
1 changed files with 4 additions and 2 deletions
|
|
@ -258,8 +258,10 @@ Not actually set up until the first time you you use it.")
|
|||
(setq cd-list
|
||||
(nconc cd-list
|
||||
(list (substitute-in-file-name
|
||||
(file-name-as-directory
|
||||
(substring cd-path cd-start cd-colon))))))
|
||||
(if (= cd-start cd-colon)
|
||||
"."
|
||||
(file-name-as-directory
|
||||
(substring cd-path cd-start cd-colon)))))))
|
||||
(setq cd-start (+ cd-colon 1)))
|
||||
cd-list)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue