commit fa2660385d64eac0fa2bb05158378be2bf7d4059 parent 0e159d522bec54bba99c14edad51d9c450f60aa1 Author: hhvn <dev@hhvn.uk> Date: Sat, 5 Feb 2022 17:39:36 +0000 s/ui.c: set caret to 0 in ui_rectrl Diffstat:
M | src/ui.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ui.c b/src/ui.c @@ -1614,7 +1614,7 @@ ui_rectrl(char *str) { rp = NULL; } - for (rc = 0; str && *str; str++) { + for (rc = 0, caret = 0; str && *str; str++) { if (caret) { c = toupper(*str) - 64; if (c <= 31 && c >= 0) {