Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions lua/fff/picker_ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1278,12 +1278,7 @@ function M.select(action)
-- If current active buffer is not a normal buffer we find a suitable window with a tab otherwise opening a new split
if current_buftype ~= '' or not current_buf_modifiable then
local suitable_win = find_suitable_window()
if suitable_win then
vim.api.nvim_set_current_win(suitable_win)
else
vim.cmd('split ' .. vim.fn.fnameescape(relative_path))
return
end
if suitable_win then vim.api.nvim_set_current_win(suitable_win) end
end

vim.cmd('edit ' .. vim.fn.fnameescape(relative_path))
Expand Down
Loading