mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-02-19 00:05:10 +08:00
Fix problem with jumping over an existing closing delimiter.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user