1
0
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:
wsdjeg 2023-05-31 19:26:18 +08:00
parent 09c768b967
commit 333f6954e3

View File

@ -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