From 5f1cc94f84f96e6ac12f676adcce47d9746f0312 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 24 Oct 2001 14:13:42 +0000 Subject: 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 --- src/fe-text/gui-entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fe-text/gui-entry.c') diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index 0154902d..7899b7d2 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -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); -- cgit v1.2.3