1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:30:05 +08:00

fix(log): silent warning

This commit is contained in:
wsdjeg 2023-04-15 21:41:13 +08:00
parent 11e5a4f4b3
commit efa65d6537
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ function! s:self.warn(msg, ...) abort
return
endif
let log = self._build_msg(a:msg, 2)
if (!self.silent && self.verbose >= 2) || get(a:000, 0, 0) == 1
if (!self.silent && self.verbose >= 2) || get(a:000, 0, 1) == 0
echohl WarningMsg
echom log
echohl None

View File

@ -86,7 +86,7 @@ function! SpaceVim#layers#load(layer, ...) abort
call SpaceVim#logger#warn('Failed to load '
\ . a:layer
\ . ' layer, read :h SpaceVim-layer-' . a:layer
\ . ' for more info!', 0)
\ . ' for more info!')
endif
endif
if a:0 == 1 && type(a:1) == 4