Skip to content

Commit

Permalink
newt(whiptail): fix code that was doing toupper of input
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaurion committed Oct 11, 2023
1 parent bd2a8eb commit 498a78a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions patches/newt-0.52.20.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- ./listbox.c.orig 2023-10-11 15:26:20.365000000 -0400
+++ ./listbox.c 2023-10-11 15:27:26.762000000 -0400
@@ -652,7 +652,7 @@
for(i = 0, item = li->boxItems; item != NULL &&
i < li->currItem; i++, item = item->next);

- if (item && item->text && (toupper(*item->text) == toupper(ev.u.key))) {
+ if (item && item->text && *item->text == ev.u.key) {
item = item->next;
i++;
} else {
@@ -660,7 +660,7 @@
i = 0;
}
while (item && item->text &&
- toupper(*item->text) != toupper(ev.u.key)) {
+ *item->text != ev.u.key) {
item = item->next;
i++;
}

0 comments on commit 498a78a

Please sign in to comment.