Skip to content

Commit 895c8fa

Browse files
Kamilcuktpope
authored andcommitted
Add customizable message colors
1 parent fe6a343 commit 895c8fa

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

autoload/dispatch.vim

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,23 +1194,28 @@ function! dispatch#complete(file, ...) abort
11941194
let status = -1
11951195
call writefile([-1], request.file . '.complete')
11961196
endtry
1197+
if !a:0
1198+
silent doautocmd ShellCmdPost
1199+
endif
1200+
if !request.background && !get(request, 'aborted')
1201+
call s:cwindow(request, 0, status, '', 'make')
1202+
redraw!
1203+
endif
11971204
if has_key(request, 'aborted')
1205+
echohl DispatchAbortedMsg
11981206
let label = 'Aborted:'
11991207
elseif status > 0
1208+
echohl DispatchFailureMsg
12001209
let label = 'Failure:'
12011210
elseif status == 0
1211+
echohl DispatchSuccessMsg
12021212
let label = 'Success:'
12031213
else
1214+
echohl DispatchCompleteMsg
12041215
let label = 'Complete:'
12051216
endif
1206-
if !a:0
1207-
silent doautocmd ShellCmdPost
1208-
endif
1209-
if !request.background && !get(request, 'aborted')
1210-
call s:cwindow(request, 0, status, '', 'make')
1211-
redraw!
1212-
endif
12131217
echo label '!'.request.expanded s:postfix(request)
1218+
echohl NONE
12141219
if !a:0
12151220
checktime
12161221
endif

0 commit comments

Comments
 (0)