Mercurial > vim
comparison runtime/macros/matchit.vim @ 7013:349e6c01f35d
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 20:34:49 +0200 |
parents | 9eb0d30510f7 |
children |
comparison
equal
deleted
inserted
replaced
7012:0175e7cfea2e | 7013:349e6c01f35d |
---|---|
301 let matchline = getline(".") | 301 let matchline = getline(".") |
302 let currcol = col(".") | 302 let currcol = col(".") |
303 let regexp = s:Wholematch(matchline, a:1, currcol-1) | 303 let regexp = s:Wholematch(matchline, a:1, currcol-1) |
304 let endcol = matchend(matchline, regexp) | 304 let endcol = matchend(matchline, regexp) |
305 if endcol > currcol " This is NOT off by one! | 305 if endcol > currcol " This is NOT off by one! |
306 execute "normal!" . (endcol - currcol) . "l" | 306 call cursor(0, endcol) |
307 endif | 307 endif |
308 endif " a:0 | 308 endif " a:0 |
309 endif " a:mode != "o" && etc. | 309 endif " a:mode != "o" && etc. |
310 return 0 | 310 return 0 |
311 endfun | 311 endfun |