Skip to content

Commit

Permalink
Vim: set title when using set{qf,loc}list()
Browse files Browse the repository at this point in the history
References #44.
  • Loading branch information
mhinz committed Oct 4, 2016
1 parent 38700ca commit ea23c84
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions autoload/grepper.vim
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,11 @@ function! s:finish_up(flags) abort

call s:restore_errorformat()

if has('nvim')
if qf
call setqflist(qlist, 'r', s:cmdline)
else
call setloclist(0, llist, 'r', s:cmdline)
endif
let title = has('nvim') ? s:cmdline : {'title': s:cmdline}
if qf
call setqflist(qlist, 'r', title)
else
call setloclist(0, llist, 'r', title)
endif

if size == 0
Expand Down

0 comments on commit ea23c84

Please sign in to comment.