mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Fix offset in get_surrounding
This commit is contained in:
@@ -205,9 +205,8 @@ function! matchup#delim#get_surrounding(type, ...) " {{{1
|
||||
|
||||
if len(l:matches)
|
||||
let l:close = l:local ? l:open.links.next : l:open.links.close
|
||||
" XXX need actual column position?
|
||||
let l:pos_val_try = matchup#pos#val(l:close)
|
||||
\ + strdisplaywidth(l:close.match) - 1
|
||||
\ + matchup#delim#end_offset(l:close)
|
||||
endif
|
||||
|
||||
if len(l:matches) && l:pos_val_try >= l:pos_val_cursor
|
||||
|
||||
@@ -19,10 +19,7 @@ function! matchup#motion#init_module() " {{{1
|
||||
\ empty(g:v_motion_force) ? 'v' : g:v_motion_force
|
||||
|
||||
" jump between matching pairs
|
||||
" TODO XXX add "forced" omap: dV% (must make v,V,C-V)
|
||||
|
||||
" <silent> XXX
|
||||
" todo make % vi compatible wrt yank (:h quote_number)
|
||||
" TODO can % be made vi compatible wrt yank (:h quote_number)?
|
||||
|
||||
" the basic motions % and g%
|
||||
nnoremap <silent> <plug>(matchup-%)
|
||||
|
||||
Reference in New Issue
Block a user