mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +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
|
||||
api.nvim_set_current_win(win)
|
||||
else
|
||||
api.nvim_set_current_buf(bufnr)
|
||||
api.nvim_buf_set_option(bufnr, 'buflisted', true)
|
||||
api.nvim_set_current_buf(bufnr)
|
||||
end
|
||||
local range = location.range or location.targetSelectionRange
|
||||
local row = range.start.line
|
||||
|
Reference in New Issue
Block a user