mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
Add a simple log function.
This commit is contained in:
@@ -58,3 +58,9 @@ endfunction
|
||||
function! gitgutter#debug#output(text)
|
||||
call append(line('$'), a:text)
|
||||
endfunction
|
||||
|
||||
function! gitgutter#debug#log(message)
|
||||
let msg = type(a:message) == 1 ? split(a:message, '\n') : a:message
|
||||
call writefile(msg, 'gitgutter.log', 'a')
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user