Fix newlines in c!

Closes #146.
This commit is contained in:
Tim Pope 2014-04-23 23:16:02 -04:00
parent 05cbc742a1
commit 12386dc0c2
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ function! s:filterop(type) abort
try try
set selection=inclusive clipboard-=unnamed clipboard-=unnamedplus set selection=inclusive clipboard-=unnamed clipboard-=unnamedplus
let expr = s:opfunc(a:type) let expr = s:opfunc(a:type)
let @@ = matchstr(expr, '^\n\+').fireplace#session_eval(expr).matchstr(expr, '\n\+$') let @@ = fireplace#session_eval(matchstr(expr, '^\n\+').expr).matchstr(expr, '\n\+$')
if @@ !~# '^\n*$' if @@ !~# '^\n*$'
normal! gvp normal! gvp
endif endif