mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
fix(notify): fix notify cursor position
This commit is contained in:
parent
721e31186f
commit
49e00f00f5
@ -300,6 +300,8 @@ function! s:self.redraw_windows() abort
|
||||
call self.__buffer.buf_set_lines(self.border.bufnr, 0 , -1, 0,
|
||||
\ self.draw_border(self.title, self.notification_width, s:msg_real_len(self.message)))
|
||||
call self.__buffer.buf_set_lines(self.bufnr, 0 , -1, 0, s:message_body(self.message))
|
||||
call nvim_win_set_cursor(self.winid, [1, 0])
|
||||
call nvim_win_set_cursor(self.border.winid, [1, 0])
|
||||
endfunction
|
||||
|
||||
|
||||
|
@ -217,6 +217,8 @@ function M.redraw_windows()
|
||||
M.draw_border(M.title, M.notification_width, msg_real_len(M.message))
|
||||
)
|
||||
vim.api.nvim_buf_set_lines(M.bufnr, 0, -1, false, message_body(M.message))
|
||||
vim.api.nvim_win_set_cursor(M.winid, {1, 0})
|
||||
vim.api.nvim_win_set_cursor(M.border.winid, {1, 0})
|
||||
end
|
||||
|
||||
function M.increase_window()
|
||||
|
Loading…
x
Reference in New Issue
Block a user