mirror of
https://github.com/neovim/neovim.git
synced 2026-04-02 13:49:27 +00:00
fix(lsp): use winresetview() to avoid switching to normal mode (#38641)
This commit is contained in:
@@ -272,7 +272,7 @@ function Provider:on_win(toprow, botrow)
|
||||
-- Fix https://github.com/neovim/neovim/issues/16166
|
||||
-- Make sure the code lens on the first line is visible when updating.
|
||||
if row == 0 then
|
||||
vim.cmd('normal! zb')
|
||||
vim.fn.winrestview({ topfill = 1 })
|
||||
end
|
||||
end
|
||||
self.row_version[row] = self.version
|
||||
|
||||
Reference in New Issue
Block a user