diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-entry.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index 98d48121..6c265b51 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -243,15 +243,15 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos) /* clear the rest of the input line */ if (xpos < end_xpos) { - if (end_xpos == term_width) - term_clrtoeol(root_window); - else { - while (xpos < end_xpos) { - term_addch(root_window, ' '); - xpos++; + if (end_xpos == term_width) + term_clrtoeol(root_window); + else { + while (xpos < end_xpos) { + term_addch(root_window, ' '); + xpos++; + } } } - } } static void gui_entry_draw(GUI_ENTRY_REC *entry) |