fix: refresh bufnr after executing edit command (#119)

This commit is contained in:
Senghan Bright
2020-09-23 22:31:50 +02:00
committed by GitHub
parent 7871d392ad
commit 6e59074a50

View File

@@ -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