Fixes #39, Backspace removes additional " (quote) on line below.
This commit is contained in:
parent
a86ea24a0f
commit
f13a60913f
@ -238,6 +238,11 @@ function! AutoPairsDelete()
|
||||
" Delete (|__\n___)
|
||||
let nline = getline(line('.')+1)
|
||||
if nline =~ '^\s*'.close
|
||||
if &filetype == 'vim' && prev_char == '"'
|
||||
" Keep next line's comment
|
||||
return "\<BS>"
|
||||
end
|
||||
|
||||
let space = matchstr(nline, '^\s*')
|
||||
return "\<BS>\<DEL>". repeat("\<DEL>", len(space)+1)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user