aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-08-03 19:22:27 +0800
committerverdant <im@verdant.ee>2026-08-03 19:22:52 +0800
commitfee7ec9cbe60a2e5db5193a1db353ccd1fc5e5a3 (patch)
tree2968f51f94ea6169177c6c4f8232b06e9c24ea85 /src
parent788a7605fc36140f3bf4c7c155f73a530c46cb42 (diff)
downloadsf-fee7ec9cbe60a2e5db5193a1db353ccd1fc5e5a3.tar.gz
sf-fee7ec9cbe60a2e5db5193a1db353ccd1fc5e5a3.zip
Add else to handle other keys
Diffstat (limited to 'src')
-rw-r--r--src/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 20387c0..3375349 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -17,6 +17,7 @@ get_input(const char *prompt, char *buf)
werase(status_window->win);
mvwprintw(status_window->win, 0, 0, "%s", prompt);
wrefresh(status_window->win);
+
while ((ch = getch())) {
werase(status_window->win);
@@ -39,12 +40,12 @@ get_input(const char *prompt, char *buf)
} else {
return -1;
}
+ } else {
+ continue;
}
mvwprintw(status_window->win, 0, 0, "%s%s", prompt, buf);
wrefresh(status_window->win);
-
- LOG_WRITE_INFO("%s", buf);
}
curs_set(0);