mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-10 06:31:52 +08:00
Don't use setline() with quotes.
This commit is contained in:
@@ -401,7 +401,8 @@ function! delimitMate#QuoteDelim(char) "{{{
|
|||||||
" Seems like we have an unbalanced quote, insert one quotation
|
" Seems like we have an unbalanced quote, insert one quotation
|
||||||
" mark and jump to the middle.
|
" mark and jump to the middle.
|
||||||
call delimitMate#AddToBuffer(a:char)
|
call delimitMate#AddToBuffer(a:char)
|
||||||
return delimitMate#WriteAfter(a:char)
|
"return delimitMate#WriteAfter(a:char)
|
||||||
|
return a:char . "\<Left>"
|
||||||
else
|
else
|
||||||
" Insert a pair and jump to the middle.
|
" Insert a pair and jump to the middle.
|
||||||
let sufix = ''
|
let sufix = ''
|
||||||
@@ -412,8 +413,8 @@ function! delimitMate#QuoteDelim(char) "{{{
|
|||||||
let sufix = !has_marker ? s:g('eol_marker') : ''
|
let sufix = !has_marker ? s:g('eol_marker') : ''
|
||||||
endif
|
endif
|
||||||
call delimitMate#AddToBuffer(a:char . sufix)
|
call delimitMate#AddToBuffer(a:char . sufix)
|
||||||
call delimitMate#WriteAfter(a:char . sufix)
|
"call delimitMate#WriteAfter(a:char . sufix)
|
||||||
return a:char
|
return a:char . a:char . "\<Left>"
|
||||||
endif
|
endif
|
||||||
endfunction "}}}
|
endfunction "}}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user