From f87fea3cd0792de52c0620c329b67db096a7a687 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 19:19:39 +0200 Subject: screen_utils: don't call wmove() twice The second wmove() is redundant, because the cursor is already there after waddstr(). This also repairs wide characters in the prompt. --- src/screen_utils.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/screen_utils.c b/src/screen_utils.c index 6029596bd..5dfc42630 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -28,7 +28,6 @@ #include #include -#include #define FIND_PROMPT _("Find: ") #define RFIND_PROMPT _("Find backward: ") @@ -46,13 +45,11 @@ int 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); -- cgit v1.2.3