summaryrefslogtreecommitdiffstats
path: root/autoload/rust.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-04-25 21:03:34 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-04-25 21:03:34 +0200
commit68b2748af117b56208f25678c4b465af00dc64c5 (patch)
treef9038064b78513b3f99edb574cdd2943bd2fd633 /autoload/rust.vim
parent14dc82fc4e6c0c08078f97a24a6c1639c1cc5113 (diff)
downloadvim-polyglot-68b2748af117b56208f25678c4b465af00dc64c5.tar.gz
vim-polyglot-68b2748af117b56208f25678c4b465af00dc64c5.zip
Update
Diffstat (limited to 'autoload/rust.vim')
-rw-r--r--autoload/rust.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/rust.vim b/autoload/rust.vim
index 373be590..34dd1673 100644
--- a/autoload/rust.vim
+++ b/autoload/rust.vim
@@ -502,13 +502,13 @@ function! s:SearchTestFunctionNameUnderCursor() abort
" Search the end of test function (closing brace) to ensure that the
" cursor position is within function definition
if maparg('<Plug>(MatchitNormalForward)') ==# ''
- normal! %
+ keepjumps normal! %
else
" Prefer matchit.vim official plugin to native % since the plugin
" provides better behavior than original % (#391)
" To load the plugin, run:
" :packadd matchit
- execute 'normal' "\<Plug>(MatchitNormalForward)"
+ execute 'keepjumps' 'normal' "\<Plug>(MatchitNormalForward)"
endif
if line('.') < cursor_line
return ''