comparison runtime/pack/dist/opt/matchit/autoload/matchit.vim @ 19574:d4deb2e50667

Update runtime files Commit: https://github.com/vim/vim/commit/eab6dff19f387469a200011bc6cf3508f5e43a4a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 1 19:06:45 2020 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Mar 2020 19:15:04 +0100
parents 6d11fc4aa683
children f0d7cb510ce3
comparison
equal deleted inserted replaced
19573:9d0db06b6ad2 19574:d4deb2e50667
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 Oct 24 3 " Last Change: Mar 01, 2020
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
45 " If this function was called from Visual mode, make sure that the cursor 45 " If this function was called from Visual mode, make sure that the cursor
46 " is at the correct end of the Visual range: 46 " is at the correct end of the Visual range:
47 if a:mode == "v" 47 if a:mode == "v"
48 execute "normal! gv\<Esc>" 48 execute "normal! gv\<Esc>"
49 elseif a:mode == "o" && mode(1) !~# '[vV]' 49 elseif a:mode == "o" && mode(1) !~# '[vV]'
50 exe "norm! v"
51 elseif a:mode == "n" && mode(1) =~# 'ni'
50 exe "norm! v" 52 exe "norm! v"
51 endif 53 endif
52 " In s:CleanUp(), we may need to check whether the cursor moved forward. 54 " In s:CleanUp(), we may need to check whether the cursor moved forward.
53 let startpos = [line("."), col(".")] 55 let startpos = [line("."), col(".")]
54 " Use default behavior if called with a count. 56 " Use default behavior if called with a count.