Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG]select command display in wrong
On Thu, Dec 19, 2024 at 10:57 PM safreya <safreya@xxxxxx> wrote:
>
> I'd like to report a bug with select command.
>
> Displayed word is not correct.But `opt` got the correct word.Did
> encoding conversion occur?
This seems pretty straightforward.
diff --git a/Src/loop.c b/Src/loop.c
index 84dc66476..1d2683085 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -371,7 +371,7 @@ selectlist(LinkList l, size_t start)
size_t t2 = strlen(*ap) + 2;
int t3;
- fprintf(stderr, "%d) %s", t3 = ap - arr + 1, *ap);
+ fprintf(stderr, "%d) %s", t3 = ap - arr + 1, unmeta(*ap));
while (t3)
t2++, t3 /= 10;
for (; t2 < fw; t2++)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author