Respect jump list on ]<C-D> within same file

Closes #70.
This commit is contained in:
Tim Pope 2014-04-03 18:23:24 -04:00
parent d65eaa5068
commit da3f5857b5

View File

@ -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)