fix: refresh bufnr after executing edit command (#119)
This commit is contained in:
@@ -101,6 +101,7 @@ local function goto_file_selection(prompt_bufnr, command)
|
|||||||
local bufnr = vim.api.nvim_get_current_buf()
|
local bufnr = vim.api.nvim_get_current_buf()
|
||||||
if filename ~= vim.api.nvim_buf_get_name(bufnr) then
|
if filename ~= vim.api.nvim_buf_get_name(bufnr) then
|
||||||
vim.cmd(string.format(":%s %s", command, filename))
|
vim.cmd(string.format(":%s %s", command, filename))
|
||||||
|
bufnr = vim.api.nvim_get_current_buf()
|
||||||
a.nvim_buf_set_option(bufnr, "buflisted", true)
|
a.nvim_buf_set_option(bufnr, "buflisted", true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user