Try to fix di%, fixes #66

This commit is contained in:
Andy K. Massimino
2019-07-24 12:23:25 -04:00
parent ae4496af96
commit e581db9fda

View File

@@ -183,14 +183,17 @@ function! matchup#delim#get_surrounding(type, ...) " {{{1
call matchup#perf#toc('delim#get_surrounding', 'accept')
return [l:open, l:close]
endif
call matchup#pos#set_cursor(matchup#pos#prev(l:open))
let l:counter -= 1
let l:best = [l:open, l:close]
else
call matchup#pos#set_cursor(matchup#pos#prev(l:open))
let l:pos_val_last = l:pos_val_open
let l:pos_val_open = matchup#pos#val(l:open)
endif
if l:open.lnum == 1 && l:open.cnum == 1
break
endif
call matchup#pos#set_cursor(matchup#pos#prev(l:open))
endwhile
if !empty(l:best) && g:matchup_delim_count_fail