lsp: set buflisted when jumping to location (#12253)

This commit is contained in:
Gabriel Sanches 2020-05-07 10:30:42 -03:00 committed by GitHub
parent f04a9a2c9a
commit 7432b3ca4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -438,6 +438,7 @@ function M.jump_to_location(location)
--- Jump to new location
api.nvim_set_current_buf(bufnr)
api.nvim_buf_set_option(0, 'buflisted', true)
local range = location.range or location.targetSelectionRange
local row = range.start.line
local col = range.start.character