Skip to content

Commit 778c0e9

Browse files
authored
Merge pull request #1597 from gldtn/master
2 parents bd0c2d3 + 02ee70f commit 778c0e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/neogit/lib/finder.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ end
117117
--- Utility function to map actions
118118
---@param on_select fun(item: any|nil)
119119
---@param allow_multi boolean
120+
---@param refocus_status boolean
120121
local function fzf_actions(on_select, allow_multi, refocus_status)
121122
local function refresh()
122123
if refocus_status then
@@ -150,7 +151,10 @@ end
150151
local function fzf_opts(opts)
151152
local fzf_opts = {}
152153

153-
if not opts.allow_multi then
154+
-- Allow multi by default
155+
if opts.allow_multi then
156+
fzf_opts["--multi"] = ""
157+
else
154158
fzf_opts["--no-multi"] = ""
155159
end
156160

0 commit comments

Comments
 (0)