Skip to content

Commit 37dbfc3

Browse files
committed
Debugging statements for execution of external commands
1 parent 7eb0d85 commit 37dbfc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/xolox/shell.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: October 18, 2011
44
" URL: http://peterodding.com/code/vim/shell/
55

6-
let g:xolox#shell#version = '0.9.16'
6+
let g:xolox#shell#version = '0.9.17'
77

88
if !exists('s:fullscreen_enabled')
99
let s:enoimpl = "%s() hasn't been implemented on your platform! %s"
@@ -122,6 +122,7 @@ function! xolox#shell#execute(command, synchronous, ...) " -- execute external c
122122
if xolox#misc#os#is_win() && s:has_dll()
123123
let fn = 'execute_' . (a:synchronous ? '' : 'a') . 'synchronous'
124124
let cmd = &shell . ' ' . &shellcmdflag . ' ' . cmd
125+
call xolox#misc#msg#debug("shell.vim %s: Executing %s using compiled DLL.", g:xolox#shell#version, cmd)
125126
let error = s:library_call(fn, cmd)
126127
if error != ''
127128
let msg = '%s(%s) failed! (error: %s)'
@@ -131,6 +132,7 @@ function! xolox#shell#execute(command, synchronous, ...) " -- execute external c
131132
if has('unix') && !a:synchronous
132133
let cmd = '(' . cmd . ') &'
133134
endif
135+
call xolox#misc#msg#debug("shell.vim %s: Executing %s using system().", g:xolox#shell#version, cmd)
134136
call s:handle_error(cmd, system(cmd))
135137
endif
136138
if a:synchronous

0 commit comments

Comments
 (0)