Skip to content

Commit b59e180

Browse files
sodapopcantpope
authored andcommitted
Keep jumps when jumping to schema
See tpope#542
1 parent c9f34e5 commit b59e180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/rails.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,7 @@ function! s:jump(def, ...) abort
22082208
let include = &l:include
22092209
try
22102210
setlocal include=
2211-
exe 'djump' def
2211+
exe 'keepjumps djump' def
22122212
catch /^Vim(djump):E387/
22132213
catch
22142214
let error = 1
@@ -2225,7 +2225,7 @@ function! s:jump(def, ...) abort
22252225
if !success
22262226
try
22272227
setlocal include=
2228-
exe 'djump' def
2228+
exe 'keepjumps djump' def
22292229
catch
22302230
finally
22312231
let &l:include = include

0 commit comments

Comments
 (0)