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