From 6e59074a5056790497c693fea03c2e8a3b5fb070 Mon Sep 17 00:00:00 2001 From: Senghan Bright Date: Wed, 23 Sep 2020 22:31:50 +0200 Subject: [PATCH] fix: refresh `bufnr` after executing edit command (#119) --- lua/telescope/actions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/telescope/actions.lua b/lua/telescope/actions.lua index f8c3453..f2c3ffc 100644 --- a/lua/telescope/actions.lua +++ b/lua/telescope/actions.lua @@ -101,6 +101,7 @@ local function goto_file_selection(prompt_bufnr, command) local bufnr = vim.api.nvim_get_current_buf() if filename ~= vim.api.nvim_buf_get_name(bufnr) then vim.cmd(string.format(":%s %s", command, filename)) + bufnr = vim.api.nvim_get_current_buf() a.nvim_buf_set_option(bufnr, "buflisted", true) end