1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

fix(logger): fix logger debug function

This commit is contained in:
Shidong Wang 2021-11-04 14:54:06 +08:00
parent 290dc34d73
commit 5cd0cb78b0
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -191,6 +191,12 @@ else
call s:LOGGER.set_name(self.origin_name)
endfunction
function! s:derive.debug(msg) abort
call s:LOGGER.set_name(self.derive_name)
call s:LOGGER.debug(a:msg)
call s:LOGGER.set_name(self.origin_name)
endfunction
function! SpaceVim#logger#derive(name) abort
let s:derive.derive_name = printf('%' . strdisplaywidth(s:LOGGER.get_name()) . 'S', a:name)
return deepcopy(s:derive)