mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 07:50:05 +08:00
perf(notify): change notify step timer
This commit is contained in:
parent
6cc0fc6486
commit
1629ba4c92
@ -100,11 +100,11 @@ endfunction
|
|||||||
function! s:self.increase_window(...) abort
|
function! s:self.increase_window(...) abort
|
||||||
" let self.notification_width = self.__floating.get_width(self.winid)
|
" let self.notification_width = self.__floating.get_width(self.winid)
|
||||||
if self.notification_width <= self.notify_max_width && self.win_is_open()
|
if self.notification_width <= self.notify_max_width && self.win_is_open()
|
||||||
let self.notification_width += min([float2nr((self.notify_max_width - self.notification_width) * 1 / 10), float2nr(self.notify_max_width)])
|
let self.notification_width += min([float2nr((self.notify_max_width - self.notification_width) * 1 / 20), float2nr(self.notify_max_width)])
|
||||||
call self.__buffer.buf_set_lines(self.border.bufnr, 0 , -1, 0,
|
call self.__buffer.buf_set_lines(self.border.bufnr, 0 , -1, 0,
|
||||||
\ self.draw_border(self.title, self.notification_width, len(self.message)))
|
\ self.draw_border(self.title, self.notification_width, len(self.message)))
|
||||||
call self.redraw_windows()
|
call self.redraw_windows()
|
||||||
call timer_start(30, self.increase_window, {'repeat' : 1})
|
call timer_start(10, self.increase_window, {'repeat' : 1})
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user