diff options
author | Max Kellermann <max@duempel.org> | 2008-09-25 19:19:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-25 19:19:39 +0200 |
commit | f87fea3cd0792de52c0620c329b67db096a7a687 (patch) | |
tree | 758fab5957724ae12714ec449fbc632c90a87a1d | |
parent | 84f5a0e883f96adf58c8fd182650a1372e367563 (diff) | |
download | mpd-f87fea3cd0792de52c0620c329b67db096a7a687.tar.gz mpd-f87fea3cd0792de52c0620c329b67db096a7a687.tar.xz mpd-f87fea3cd0792de52c0620c329b67db096a7a687.zip |
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.
-rw-r--r-- | src/screen_utils.c | 3 |
1 files changed, 0 insertions, 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 <stdlib.h> #include <unistd.h> -#include <string.h> #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); |