Fix naked function call
This commit is contained in:
parent
b72bb7b289
commit
859f7eaa70
@ -966,7 +966,7 @@ function! s:Grep(cmd,bang,arg) abort
|
|||||||
if a:cmd =~# '^l'
|
if a:cmd =~# '^l'
|
||||||
call setloclist(0, list, 'r')
|
call setloclist(0, list, 'r')
|
||||||
else
|
else
|
||||||
setqflist(list, 'r')
|
call setqflist(list, 'r')
|
||||||
endif
|
endif
|
||||||
if !a:bang && !empty(list)
|
if !a:bang && !empty(list)
|
||||||
return (a:cmd =~# '^l' ? 'l' : 'c').'first'.matchstr(a:arg,'\v\C[''" ]\zs\|.*')
|
return (a:cmd =~# '^l' ? 'l' : 'c').'first'.matchstr(a:arg,'\v\C[''" ]\zs\|.*')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user