commit 84baa64b4f1a2cd7a7f313d0cedbbca4f202bd59
parent f505c00b77757f74cf458b1e275e04ef6288f1de
Author: Daniel Moch <daniel@danielmoch.com>
Date: Sat, 7 Oct 2017 10:11:28 -0400
Merge pull request #14 from foxik/nicer-qf-name
Give the {quickfix,location} list window nicer title.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/plugin/makejob.vim b/plugin/makejob.vim
@@ -80,6 +80,11 @@ function! s:JobHandler(channel) abort
silent execute bufwinnr(l:job['outbufnr']).'close'
endif
silent execute l:qfcmd.' '.l:job['outbufnr']
+ if l:job['lmake']
+ call setloclist(0, [], 'a', {'title':l:job['prog']})
+ else
+ call setqflist([], 'a', {'title':l:job['prog']})
+ endif
silent execute l:job['outbufnr'].'bwipe!'
execute l:curwinnr.'wincmd w'