Fixes #39, Backspace removes additional " (quote) on line below.

This commit is contained in:
Miao Jiang 2013-03-17 11:58:28 +08:00
parent a86ea24a0f
commit f13a60913f

View File

@ -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