From e2cc91c19a82aae7f8349e19ea7e753c8fafae04 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sat, 14 Apr 2007 20:20:37 +0000 Subject: [PATCH] Modify gui_entry_draw_from to clear to end of line only if it has not written till the last column. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4449 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index 46c39251..98d48121 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -242,6 +242,7 @@ 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 { @@ -250,6 +251,7 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos) xpos++; } } + } } static void gui_entry_draw(GUI_ENTRY_REC *entry)