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
This commit is contained in:
Emanuele Giaquinta 2007-04-14 20:20:37 +00:00 committed by exg
parent 1651390651
commit e2cc91c19a

View File

@ -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)