summaryrefslogtreecommitdiff
path: root/autoload/ale/debugging.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-16 22:19:53 +0000
committerw0rp <devw0rp@gmail.com>2017-02-16 22:19:53 +0000
commit843370b96f9a92a2298ed7985a8f620784fc9421 (patch)
tree00ca288fc4df7d64d2e6e68aabcf64e131e7472b /autoload/ale/debugging.vim
parentca17b5aebdd9bb2e31d01ae16e18047bae375c3c (diff)
downloadale-843370b96f9a92a2298ed7985a8f620784fc9421.zip
#254 Capture command exit codes in the history
Diffstat (limited to 'autoload/ale/debugging.vim')
-rw-r--r--autoload/ale/debugging.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/autoload/ale/debugging.vim b/autoload/ale/debugging.vim
index 737a90d7..1ca7736b 100644
--- a/autoload/ale/debugging.vim
+++ b/autoload/ale/debugging.vim
@@ -68,7 +68,14 @@ function! s:EchoCommandHistory() abort
endif
for l:item in g:ale_buffer_info[l:buffer].history
- echom '(' . l:item.status . ') ' . string(l:item.command)
+ let l:status_message = l:item.status
+
+ " Include the exit code in output if we have it.
+ if l:item.status ==# 'finished'
+ let l:status_message .= ' - exit code ' . l:item.exit_code
+ endif
+
+ echom '(' . l:status_message . ') ' . string(l:item.command)
endfor
endfunction