diff options
| author | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-18 18:21:06 +0200 |
|---|---|---|
| committer | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-18 18:21:06 +0200 |
| commit | 5e02368fe8042626bf740ff52980651146b608a4 (patch) | |
| tree | dba8f443faabf591a5d228120286966122897316 /expand.c | |
| parent | ca675175742174d6bfcd0263583f840e250fc58f (diff) | |
make it work again
Diffstat (limited to 'expand.c')
| -rw-r--r-- | expand.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}); |
