mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 05:04:34 +08:00
Remove "apostrophe" feature. Closes #81.
This commit is contained in:
@@ -328,9 +328,6 @@ function! delimitMate#QuoteDelim(char) "{{{
|
|||||||
\ index(b:_l_delimitMate_nesting_quotes, a:char) < 0
|
\ index(b:_l_delimitMate_nesting_quotes, a:char) < 0
|
||||||
" Get out of the string.
|
" Get out of the string.
|
||||||
return a:char . delimitMate#Del()
|
return a:char . delimitMate#Del()
|
||||||
elseif (char_before =~ '\w' && a:char == "'")
|
|
||||||
" Seems like an apostrophe, insert a single quote.
|
|
||||||
return a:char
|
|
||||||
elseif (char_before == a:char && char_at != a:char) && b:_l_delimitMate_smart_quotes
|
elseif (char_before == a:char && char_at != a:char) && b:_l_delimitMate_smart_quotes
|
||||||
" Seems like we have an unbalanced quote, insert one quotation mark and jump to the middle.
|
" Seems like we have an unbalanced quote, insert one quotation mark and jump to the middle.
|
||||||
call delimitMate#AddToBuffer(a:char)
|
call delimitMate#AddToBuffer(a:char)
|
||||||
|
|||||||
Reference in New Issue
Block a user