We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56ea140 commit 54f96daCopy full SHA for 54f96da
1 file changed
lua/fff/picker_ui.lua
@@ -1278,12 +1278,7 @@ function M.select(action)
1278
-- If current active buffer is not a normal buffer we find a suitable window with a tab otherwise opening a new split
1279
if current_buftype ~= '' or not current_buf_modifiable then
1280
local suitable_win = find_suitable_window()
1281
- if suitable_win then
1282
- vim.api.nvim_set_current_win(suitable_win)
1283
- else
1284
- vim.cmd('split ' .. vim.fn.fnameescape(relative_path))
1285
- return
1286
- end
+ if suitable_win then vim.api.nvim_set_current_win(suitable_win) end
1287
end
1288
1289
vim.cmd('edit ' .. vim.fn.fnameescape(relative_path))
0 commit comments