mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
Fix '<CR><BS>. Closes #178.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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>" "''"
|
||||||
|
|||||||
Reference in New Issue
Block a user