Fix naked function call

This commit is contained in:
guns 2012-04-07 17:16:54 -05:00 committed by Tim Pope
parent b72bb7b289
commit 859f7eaa70

View File

@ -966,7 +966,7 @@ function! s:Grep(cmd,bang,arg) abort
if a:cmd =~# '^l'
call setloclist(0, list, 'r')
else
setqflist(list, 'r')
call setqflist(list, 'r')
endif
if !a:bang && !empty(list)
return (a:cmd =~# '^l' ? 'l' : 'c').'first'.matchstr(a:arg,'\v\C[''" ]\zs\|.*')