diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-04 16:23:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 10:23:43 +0200 |
commit | 9961a9702e75d80e6d37637182f361320e690002 (patch) | |
tree | e5a78036aec902269891f6bae60656959fa2f1f5 /runtime/lua/vim/lsp/util.lua | |
parent | e6fa4cca24cb16b9cecb41b9ecdb8c9bc349886b (diff) | |
download | rneovim-9961a9702e75d80e6d37637182f361320e690002.tar.gz rneovim-9961a9702e75d80e6d37637182f361320e690002.tar.bz2 rneovim-9961a9702e75d80e6d37637182f361320e690002.zip |
fix(lsp): set buflisted before switching to buffer (#18854)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 63e9342b1a..b041385c9c 100644 --- 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 |