Skip to content

Commit

Permalink
fix useless using wprintw
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Sep 13, 2022
1 parent 629bf91 commit 85f86ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ get_string(char *prompt,
tabcomplete_mode = _tabcomplete_mode;

wattron(prompt_window, prompt_window_input_attr);
mvwprintw(prompt_window, 0, 0, "");
wmove(prompt_window, 0, 0);
wclrtoeol(prompt_window);

curs_set(1);
Expand Down Expand Up @@ -645,7 +645,7 @@ get_string(char *prompt,
redraw_screen();

wattron(prompt_window, prompt_window_input_attr);
mvwprintw(prompt_window, 0, 0, "");
wmove(prompt_window, 0, 0);
wclrtoeol(prompt_window);

rl_forced_update_display();
Expand Down

0 comments on commit 85f86ea

Please sign in to comment.