1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Redraw was buggy if entry line didn't continue to end of line.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1908 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-24 14:13:42 +00:00 committed by cras
parent 319e852bb4
commit 5f1cc94f84

View File

@ -94,7 +94,7 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos)
}
/* clear the rest of the input line */
if (entry->xpos + entry->width == screen_width)
if (end_xpos == screen_width)
screen_clrtoeol(screen_root);
else {
while (xpos < end_xpos) {
@ -139,6 +139,7 @@ void gui_entry_move(GUI_ENTRY_REC *entry, int xpos, int ypos, int width)
} else {
/* input line shrinked - make sure the cursor
is inside the input line */
entry->width = width;
if (entry->pos - entry->scrstart >
entry->width-2 - entry->promptlen) {
gui_entry_fix_cursor(entry);