Skip to content

Commit

Permalink
Fix '<CR><BS>. Closes #178.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raimondi committed Nov 27, 2014
1 parent 12c7d85 commit c678061
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/delimitMate.vim
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ function! delimitMate#IsSpaceExpansion() " {{{
endfunction " }}} IsSpaceExpansion()

function! delimitMate#WithinEmptyPair() "{{{
" if cursor is at column 1 return 0
if col('.') == 1
return 0
endif
" get char before the cursor.
let char1 = delimitMate#GetCharFromCursor(-1)
" get char under the cursor.
Expand Down
1 change: 1 addition & 0 deletions test/autoclose_quotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ let g:delimitMate_smart_quotes = '!\s\%#\_.'
"zyx'x" "zyx'x"
"zyx 'x" "zyx 'x'"
unlet g:delimitMate_smart_quotes
"'\<CR>\<BS>" "''"

0 comments on commit c678061

Please sign in to comment.