Skip to content

Commit

Permalink
Fix completions for dirx /.
Browse files Browse the repository at this point in the history
The arghelper.lua module accidentally truncated the list of matches
immediately after using `_addexflags()` with any hidden flags.  Any
matches added by subsequent `_addexflags()` or `addflags()` calls
accidentally got discarded.
  • Loading branch information
chrisant996 committed Apr 11, 2024
1 parent dc3edf8 commit 16d47dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/arghelper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ if not tmp._addexflags or not tmp._addexarg then
clink.onfiltermatches(function (matches)
return do_filter(matches, hide_unless, user_data)
end)
return {}
end)
end
parser:addflags(flags)
Expand Down

0 comments on commit 16d47dc

Please sign in to comment.