From 0299eac671cfdec77f3cae98802a82e2e7763598 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 11 Jan 2014 19:10:45 -0500 Subject: [PATCH] Adjust comment stripping heuristic for cq Closes #89. --- plugin/fireplace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim index 8242d57..c94f2a2 100644 --- a/plugin/fireplace.vim +++ b/plugin/fireplace.vim @@ -678,7 +678,7 @@ endfunction function! s:editop(type) abort call feedkeys(&cedit . "\", 'n') - let input = s:input(substitute(substitute(s:opfunc(a:type), "\s*;[^\n]*", '', 'g'), '\n\+\s*', ' ', 'g')) + let input = s:input(substitute(substitute(s:opfunc(a:type), "\s*;[^\n\"]*\\%(\n\\@=\\|$\\)", '', 'g'), '\n\+\s*', ' ', 'g')) if input !=# '' call fireplace#echo_session_eval(input) endif