(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>.
This commit is contained in:
parent
51a91c0910
commit
f4a9721617
1 changed files with 1 additions and 2 deletions
|
|
@ -422,8 +422,7 @@ If optional IN-OTHER-WINDOW is non-nil, find the file in another window."
|
|||
(buffer-file-name)
|
||||
"/none.none"))
|
||||
|
||||
(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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue