mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:30:03 +08:00
fix(notify): check win_is_open
before close notify
This commit is contained in:
parent
26fb76fe26
commit
d387021598
@ -108,8 +108,10 @@ function! s:self.close(...) abort
|
|||||||
call remove(self.message, 0)
|
call remove(self.message, 0)
|
||||||
endif
|
endif
|
||||||
if len(self.message) == 0
|
if len(self.message) == 0
|
||||||
|
if self.win_is_open()
|
||||||
noautocmd call self.__floating.win_close(self.border.winid, v:true)
|
noautocmd call self.__floating.win_close(self.border.winid, v:true)
|
||||||
noautocmd call self.__floating.win_close(self.winid, v:true)
|
noautocmd call self.__floating.win_close(self.winid, v:true)
|
||||||
|
endif
|
||||||
call remove(s:notifications, self.hashkey)
|
call remove(s:notifications, self.hashkey)
|
||||||
let self.notification_width = 1
|
let self.notification_width = 1
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user