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 <>.
parent 51a91c09
......@@ -422,8 +422,7 @@ If optional IN-OTHER-WINDOW is non-nil, find the file in another window."
(string-match ".*/\\(.+\\)$" pathname)
(setq fname (substring pathname (match-beginning 1) (match-end 1))
(setq fname (file-name-nondirectory pathname)
no-match nil
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