mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 17:24:29 +00:00
fix(lsp): set buflisted before switching to buffer (#18854)
This commit is contained in:
@@ -1038,8 +1038,8 @@ function M.jump_to_location(location, offset_encoding, reuse_win)
|
|||||||
if win then
|
if win then
|
||||||
api.nvim_set_current_win(win)
|
api.nvim_set_current_win(win)
|
||||||
else
|
else
|
||||||
api.nvim_set_current_buf(bufnr)
|
|
||||||
api.nvim_buf_set_option(bufnr, 'buflisted', true)
|
api.nvim_buf_set_option(bufnr, 'buflisted', true)
|
||||||
|
api.nvim_set_current_buf(bufnr)
|
||||||
end
|
end
|
||||||
local range = location.range or location.targetSelectionRange
|
local range = location.range or location.targetSelectionRange
|
||||||
local row = range.start.line
|
local row = range.start.line
|
||||||
|
|||||||
Reference in New Issue
Block a user