Adjust comment stripping heuristic for cq

Closes #89.
This commit is contained in:
Tim Pope 2014-01-11 19:10:45 -05:00
parent 1c55f88e7f
commit 0299eac671

View File

@ -678,7 +678,7 @@ endfunction
function! s:editop(type) abort
call feedkeys(&cedit . "\<Home>", '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