Commit f4a97216 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(ff-find-the-other-file): Use file-name-nondirectory

instead of string-match to find the basename of the file.  From
Pascal Obry <p.obry@wanadoo.fr>.
parent 51a91c09
...@@ -422,8 +422,7 @@ If optional IN-OTHER-WINDOW is non-nil, find the file in another window." ...@@ -422,8 +422,7 @@ If optional IN-OTHER-WINDOW is non-nil, find the file in another window."
(buffer-file-name) (buffer-file-name)
"/none.none")) "/none.none"))
(string-match ".*/\\(.+\\)$" pathname) (setq fname (file-name-nondirectory pathname)
(setq fname (substring pathname (match-beginning 1) (match-end 1))
no-match nil no-match nil
match (car alist)) match (car alist))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment