1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 12:30:40 +08:00

Update grepper (#3895)

close https://github.com/SpaceVim/SpaceVim/issues/3714
This commit is contained in:
Wang Shidong 2020-10-14 16:15:34 +08:00 committed by GitHub
parent 50c5e3d70f
commit 496cdd2c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -984,9 +984,9 @@ function! s:finish_up(flags)
\ ? cmdline
\ : {'title': cmdline, 'context': {'query': @/}}
if qf
call setqflist(list, a:flags.append ? 'a' : 'r', attrs)
call setqflist([], a:flags.append ? 'a' : 'r', attrs)
else
call setloclist(0, list, a:flags.append ? 'a' : 'r', attrs)
call setloclist(0, [], a:flags.append ? 'a' : 'r', attrs)
endif
catch /E118/
endtry