Update runtime files

This commit is contained in:
Bram Moolenaar
2019-10-26 19:53:45 +02:00
parent 8fc4296436
commit 96f45c0b6f
46 changed files with 9580 additions and 1071 deletions

View File

@ -1,6 +1,6 @@
" matchit.vim: (global plugin) Extended "%" matching
" autload script of matchit plugin, see ../plugin/matchit.vim
" Last Change: 2019 Jan 28
" Last Change: 2019 Oct 24
let s:last_mps = ""
let s:last_words = ":"
@ -211,6 +211,14 @@ function matchit#Match_wrapper(word, forward, mode) range
execute "if " . skip . "| let skip = '0' | endif"
endif
let sp_return = searchpair(ini, mid, fin, flag, skip)
if &selection isnot# 'inclusive' && a:mode == 'v'
" move cursor one pos to the right, because selection is not inclusive
" add virtualedit=onemore, to make it work even when the match ends the " line
if !(col('.') < col('$')-1)
set ve=onemore
endif
norm! l
endif
let final_position = "call cursor(" . line(".") . "," . col(".") . ")"
" Restore cursor position and original screen.
call winrestview(view)