From 16d47dca10aee398e794cee701593cc3d654a5c1 Mon Sep 17 00:00:00 2001 From: Chris Antos Date: Thu, 11 Apr 2024 01:10:18 -0700 Subject: [PATCH] Fix completions for `dirx /`. 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. --- modules/arghelper.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/arghelper.lua b/modules/arghelper.lua index e1c5f40..66ca102 100644 --- a/modules/arghelper.lua +++ b/modules/arghelper.lua @@ -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)