From 8ab087c95c59074fb38920be7fcac10ff064b6c2 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Sat, 13 Jul 2013 21:27:38 -0400 Subject: [PATCH] Don't use setline() with quotes. --- autoload/delimitMate.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 1fe59cc..b2570f6 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -401,7 +401,8 @@ function! delimitMate#QuoteDelim(char) "{{{ " Seems like we have an unbalanced quote, insert one quotation " mark and jump to the middle. call delimitMate#AddToBuffer(a:char) - return delimitMate#WriteAfter(a:char) + "return delimitMate#WriteAfter(a:char) + return a:char . "\" else " Insert a pair and jump to the middle. let sufix = '' @@ -412,8 +413,8 @@ function! delimitMate#QuoteDelim(char) "{{{ let sufix = !has_marker ? s:g('eol_marker') : '' endif call delimitMate#AddToBuffer(a:char . sufix) - call delimitMate#WriteAfter(a:char . sufix) - return a:char + "call delimitMate#WriteAfter(a:char . sufix) + return a:char . a:char . "\" endif endfunction "}}}