mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
fix(notify): fallback to echo
This commit is contained in:
parent
09c768b967
commit
333f6954e3
@ -163,6 +163,11 @@ function! s:self.close_all() abort
|
||||
endfunction
|
||||
|
||||
function! s:self.notify(msg, ...) abort
|
||||
" check if neovim/vim support following windows
|
||||
if !self.__floating.exists()
|
||||
echo a:msg
|
||||
return
|
||||
endif
|
||||
if self.notify_max_width ==# 0
|
||||
let self.notify_max_width = &columns * 0.35
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user