Skip to content

Commit 2b916c8

Browse files
rhysdda-x
authored andcommitted
Avoid polluting jumplist while running :RustTest
1 parent ce5f2b1 commit 2b916c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/rust.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,13 @@ function! s:SearchTestFunctionNameUnderCursor() abort
500500
" Search the end of test function (closing brace) to ensure that the
501501
" cursor position is within function definition
502502
if maparg('<Plug>(MatchitNormalForward)') ==# ''
503-
normal! %
503+
keepjumps normal! %
504504
else
505505
" Prefer matchit.vim official plugin to native % since the plugin
506506
" provides better behavior than original % (#391)
507507
" To load the plugin, run:
508508
" :packadd matchit
509-
execute 'normal' "\<Plug>(MatchitNormalForward)"
509+
execute 'keepjumps' 'normal' "\<Plug>(MatchitNormalForward)"
510510
endif
511511
if line('.') < cursor_line
512512
return ''

0 commit comments

Comments
 (0)