comparison runtime/pack/dist/opt/matchit/autoload/matchit.vim @ 18456:6d11fc4aa683

Update runtime files Commit: https://github.com/vim/vim/commit/96f45c0b6fc9e9d404e6805593ed1e0e6795e470 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 26 19:53:45 2019 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Oct 2019 20:00:04 +0200
parents 5688ec97294b
children d4deb2e50667
comparison
equal deleted inserted replaced
18455:3c98dfd2380c 18456:6d11fc4aa683
1 " matchit.vim: (global plugin) Extended "%" matching 1 " matchit.vim: (global plugin) Extended "%" matching
2 " autload script of matchit plugin, see ../plugin/matchit.vim 2 " autload script of matchit plugin, see ../plugin/matchit.vim
3 " Last Change: 2019 Jan 28 3 " Last Change: 2019 Oct 24
4 4
5 let s:last_mps = "" 5 let s:last_mps = ""
6 let s:last_words = ":" 6 let s:last_words = ":"
7 let s:patBR = "" 7 let s:patBR = ""
8 8
209 let skip = "0" 209 let skip = "0"
210 else 210 else
211 execute "if " . skip . "| let skip = '0' | endif" 211 execute "if " . skip . "| let skip = '0' | endif"
212 endif 212 endif
213 let sp_return = searchpair(ini, mid, fin, flag, skip) 213 let sp_return = searchpair(ini, mid, fin, flag, skip)
214 if &selection isnot# 'inclusive' && a:mode == 'v'
215 " move cursor one pos to the right, because selection is not inclusive
216 " add virtualedit=onemore, to make it work even when the match ends the " line
217 if !(col('.') < col('$')-1)
218 set ve=onemore
219 endif
220 norm! l
221 endif
214 let final_position = "call cursor(" . line(".") . "," . col(".") . ")" 222 let final_position = "call cursor(" . line(".") . "," . col(".") . ")"
215 " Restore cursor position and original screen. 223 " Restore cursor position and original screen.
216 call winrestview(view) 224 call winrestview(view)
217 normal! m' 225 normal! m'
218 if sp_return > 0 226 if sp_return > 0