This commit is contained in:
anon 2023-08-10 15:01:17 +02:00
parent e19aaa09b9
commit 5cc1a831a6

View File

@ -270,6 +270,7 @@ static inline void display_mode(){
} }
static inline void display_command_field(){ static inline void display_command_field(){
werase(winput);
mvwaddstr(winput, 0, 0, prompts[input_mode]); mvwaddstr(winput, 0, 0, prompts[input_mode]);
waddstr(winput, rl_line_buffer); waddstr(winput, rl_line_buffer);
} }
@ -514,7 +515,6 @@ display(void)
if(window_change){ if(window_change){
if(window_change == CH_HELP){ if(window_change == CH_HELP){
werase(whelp);
display_help(); display_help();
/* Do not display over the help msg and */ /* Do not display over the help msg and */
/* rely on display_help() setting CH_ALL */ /* rely on display_help() setting CH_ALL */
@ -525,7 +525,6 @@ display(void)
display_frame(); display_frame();
} }
if(window_change & CH_INPUT){ if(window_change & CH_INPUT){
werase(winput);
display_command_field(); display_command_field();
} }
if(window_change & CH_RESULT){ if(window_change & CH_RESULT){