fix: remove buffer when replacing window
This commit is contained in:
@@ -309,6 +309,7 @@ function M.open_on_directory()
|
|||||||
view.close()
|
view.close()
|
||||||
end
|
end
|
||||||
M.hijack_current_window()
|
M.hijack_current_window()
|
||||||
|
vim.api.nvim_buf_delete(buf, { force = true })
|
||||||
lib.change_dir(bufname)
|
lib.change_dir(bufname)
|
||||||
lib.set_index_and_redraw(bufname)
|
lib.set_index_and_redraw(bufname)
|
||||||
view.focus()
|
view.focus()
|
||||||
|
|||||||
Reference in New Issue
Block a user