neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 9961a9702e75d80e6d37637182f361320e690002
parent e6fa4cca24cb16b9cecb41b9ecdb8c9bc349886b
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  4 Jun 2022 16:23:43 +0800

fix(lsp): set buflisted before switching to buffer (#18854)


Diffstat:
Mruntime/lua/vim/lsp/util.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua @@ -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