diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-24 14:13:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-24 14:13:42 +0000 |
commit | 5f1cc94f84f96e6ac12f676adcce47d9746f0312 (patch) | |
tree | 7e30e9eac6338f7e49e695f2f48f4eec1516727c | |
parent | 319e852bb4c8972f6287af8c69b20beb4e9bb767 (diff) | |
download | irssi-5f1cc94f84f96e6ac12f676adcce47d9746f0312.zip |
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
-rw-r--r-- | src/fe-text/gui-entry.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |