Fix '<CR><BS>. Closes #178.

This commit is contained in:
Israel Chauca Fuentes
2014-11-27 01:48:34 -05:00
parent 12c7d85ff6
commit c678061b79
2 changed files with 5 additions and 0 deletions

View File

@@ -186,6 +186,10 @@ function! delimitMate#IsSpaceExpansion() " {{{
endfunction " }}} IsSpaceExpansion() endfunction " }}} IsSpaceExpansion()
function! delimitMate#WithinEmptyPair() "{{{ function! delimitMate#WithinEmptyPair() "{{{
" if cursor is at column 1 return 0
if col('.') == 1
return 0
endif
" get char before the cursor. " get char before the cursor.
let char1 = delimitMate#GetCharFromCursor(-1) let char1 = delimitMate#GetCharFromCursor(-1)
" get char under the cursor. " get char under the cursor.

View File

@@ -70,3 +70,4 @@ let g:delimitMate_smart_quotes = '!\s\%#\_.'
"zyx'x" "zyx'x" "zyx'x" "zyx'x"
"zyx 'x" "zyx 'x'" "zyx 'x" "zyx 'x'"
unlet g:delimitMate_smart_quotes unlet g:delimitMate_smart_quotes
"'\<CR>\<BS>" "''"