mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-15 19:45:46 +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
|
endfunction
|
||||||
|
|
||||||
function! s:self.notify(msg, ...) abort
|
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
|
if self.notify_max_width ==# 0
|
||||||
let self.notify_max_width = &columns * 0.35
|
let self.notify_max_width = &columns * 0.35
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user