summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 84f5a0e)
raw | patch | inline | side by side (parent: 84f5a0e)
author | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 17:19:39 +0000 (19:19 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 17:19:39 +0000 (19:19 +0200) |
The second wmove() is redundant, because the cursor is already there
after waddstr(). This also repairs wide characters in the prompt.
after waddstr(). This also repairs wide characters in the prompt.
src/screen_utils.c | patch | blob | history |
diff --git a/src/screen_utils.c b/src/screen_utils.c
index 6029596bdc47ea43488f93f08c48b912dd86f3f0..5dfc4263031b9479a355d2c3e2af8b1f22bb6f42 100644 (file)
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
#include <stdlib.h>
#include <unistd.h>
-#include <string.h>
#define FIND_PROMPT _("Find: ")
#define RFIND_PROMPT _("Find backward: ")
screen_getch(WINDOW *w, const char *prompt)
{
int key = -1;
- int prompt_len = strlen(prompt);
colors_use(w, COLOR_STATUS_ALERT);
wclear(w);
wmove(w, 0, 0);
waddstr(w, prompt);
- wmove(w, 0, prompt_len);
echo();
curs_set(1);