parent
d65eaa5068
commit
da3f5857b5
@ -1061,6 +1061,7 @@ function! s:Edit(cmd, keyword) abort
|
|||||||
endtry
|
endtry
|
||||||
if location !=# ''
|
if location !=# ''
|
||||||
if matchstr(location, '^+\d\+ \zs.*') ==# fnameescape(expand('%:p')) && a:cmd ==# 'edit'
|
if matchstr(location, '^+\d\+ \zs.*') ==# fnameescape(expand('%:p')) && a:cmd ==# 'edit'
|
||||||
|
normal! m'
|
||||||
return matchstr(location, '\d\+')
|
return matchstr(location, '\d\+')
|
||||||
else
|
else
|
||||||
return a:cmd.' '.location.'|let &l:path = '.string(&l:path)
|
return a:cmd.' '.location.'|let &l:path = '.string(&l:path)
|
||||||
|
Loading…
Reference in New Issue
Block a user