Skip to content

Commit 1a3b69b

Browse files
committed
log shell command before run it
1 parent 9c277a3 commit 1a3b69b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

autoload/javacomplete/util.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"
44
" Utility functions
55

6+
function! s:Log(log)
7+
let log = type(a:log) == type("") ? a:log : string(a:log)
8+
call javacomplete#logger#Log("[util] ". log)
9+
endfunction
10+
611
" TODO: search pair used in string, like
712
" 'create(ao.fox("("), new String).foo().'
813
function! javacomplete#util#GetMatchedIndexEx(str, idx, one, another)
@@ -258,6 +263,7 @@ function! s:NewJob(id, handler)
258263
endfunction
259264

260265
function! javacomplete#util#RunSystem(command, shellName, handler)
266+
call s:Log("running command: ". a:command)
261267
if has('nvim')
262268
if exists('*jobstart')
263269
let callbacks = {

0 commit comments

Comments
 (0)