Skip to content

Commit

Permalink
fix: cursor position outside buffer error
Browse files Browse the repository at this point in the history
  • Loading branch information
kair8m committed Nov 25, 2023
1 parent eb7ae65 commit 1094422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lsp_signature/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ helper.highlight_parameter = function(s, l)
end
if line == 1 then
-- scroll to top
vim.api.nvim_win_set_cursor(_LSP_SIG_CFG.winnr, { 2, 0 })
pcall(vim.api.nvim_win_set_cursor, _LSP_SIG_CFG.winnr, { 2, 0 })
end
if _LSP_SIG_CFG.bufnr and api.nvim_buf_is_valid(_LSP_SIG_CFG.bufnr) then
log('extmark', _LSP_SIG_CFG.bufnr, s, l, #_LSP_SIG_CFG.padding)
Expand Down

0 comments on commit 1094422

Please sign in to comment.