diff options
| author | Senghan Bright <senghan.bright@deltaprojects.com> | 2020-09-23 22:31:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 16:31:50 -0400 |
| commit | 6e59074a5056790497c693fea03c2e8a3b5fb070 (patch) | |
| tree | 5b249c16bd21afaab079bd8a3265c6df13df18f0 /lua | |
| parent | 7871d392ad9ad709d5f518e26bc7178e86180b6c (diff) | |
fix: refresh `bufnr` after executing edit command (#119)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
