Fix problem with jumping over an existing closing delimiter.

This commit is contained in:
Israel Chauca Fuentes
2017-02-21 22:11:27 -05:00
parent fb60f3cc9f
commit 4eaeef01bf
3 changed files with 17 additions and 3 deletions

View File

@@ -62,7 +62,8 @@ call DMTest_pairs('(a)', "a)", "()a)")
" Expand iabbreviations
iabb def ghi
call DMTest_single('', "idef(", "ghi()")
" Not sure how to make it work on the test
call DMTest_single('', "idef(", "ghi()", 0, 1)
iunabb def
call DMTest_pairs("abc а", "$i(", "abc (а")

View File

@@ -11,7 +11,7 @@
" - Add 5 to vimtap#Plan().
call vimtest#StartTap()
call vimtap#Plan(26)
call vimtap#Plan(27)
let g:delimitMate_expand_cr = 1
@@ -64,6 +64,19 @@ call DMTest_single(
\ ' }x',
\ '}'])
call DMTest_single(
\ ['sub foo {',
\ ' while (1) {',
\ ' bar',
\ ' }',
\ '}'],
\ "3GA{x",
\ ['sub foo {',
\ ' while (1) {',
\ ' bar{x}',
\ ' }',
\ '}'])
call DMTest_single('"{bracketed}', "\<Esc>A\"x", '"{bracketed}"x')
" Syntax folding enabled by autocmd breaks expansion.