Fix if-clause after latest changes

This commit is contained in:
Simon Hauser
2020-09-29 14:06:34 +02:00
committed by TJ DeVries
parent 3592b1f8b0
commit 2ce23696de

View File

@@ -94,7 +94,7 @@ local function goto_file_selection(prompt_bufnr, command)
-- TODO: Sometimes we open something with missing line numbers and stuff...
if entry_bufnr then
if command == "e" then
if command == "edit" then
a.nvim_win_set_buf(original_win_id, entry_bufnr)
else
vim.cmd(string.format(":%s #%d", command, entry_bufnr))