Merge pull request #80 from Ind1eMonk3y/master

fix(ui): Sets buffer as 'listed' when navigating
This commit is contained in:
ThePrimeagen 2021-05-12 09:31:02 -06:00 committed by GitHub
commit f34f3b49f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,7 @@ M.nav_file = function(id)
local set_row = not vim.api.nvim_buf_is_loaded(buf_id)
vim.api.nvim_set_current_buf(buf_id)
vim.api.nvim_buf_set_option(buf_id, "buflisted", true)
if set_row and mark.row and mark.col then
vim.cmd(string.format(":call cursor(%d, %d)", mark.row, mark.col))
log.debug(string.format(