Restore press enter prompt in :Ggrep in GUI

This commit is contained in:
Tim Pope 2019-08-07 19:31:26 -04:00
parent 95c1f1525d
commit 0db4ceb980

View File

@ -3725,7 +3725,9 @@ function! s:Grep(listnr, bang, arg) abort
let list = map(readfile(tempfile), 's:GrepParseLine(prefix, name_only, dir, v:val)')
call s:QuickfixSet(listnr, list, 'a')
if v:version > 704 | exe 'silent doautocmd <nomodeline> QuickFixCmdPost ' (listnr < 0 ? 'Ggrep' : 'Glgrep') | endif
redraw
if !has('gui_running')
redraw
endif
if !a:bang && !empty(list)
return (listnr < 0 ? 'c' : 'l').'first' . after
else