From 5e02368fe8042626bf740ff52980651146b608a4 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Mon, 18 May 2026 18:21:06 +0200 Subject: make it work again --- expand.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'expand.c') diff --git a/expand.c b/expand.c index e88ec6c..11764f9 100644 --- a/expand.c +++ b/expand.c @@ -62,6 +62,9 @@ void expand_word(Word word, SlotVec* target, ShellState* shstate) { break; } } + if (curr_res.active_str.count > 0) { + push_to_StrVec(&curr_res.complete_strs, inner(&curr_res.active_str)); + } for (int j = 0; j < curr_res.complete_strs.count; j++) { char* str = *get_from_StrVec(&curr_res.complete_strs, j); push_to_SlotVec(target, (Slot){.kind = SLOT_STR, .as.str = str}); -- cgit v1.2.3