diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-04-14 20:20:37 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-04-14 20:20:37 +0000 |
commit | e2cc91c19a82aae7f8349e19ea7e753c8fafae04 (patch) | |
tree | f8e1997cf085aa616c460a0dc0bcf10fcbdf54fb | |
parent | 1651390651afe5bddfb0d12e15eb31be0ef7e98d (diff) | |
download | irssi-e2cc91c19a82aae7f8349e19ea7e753c8fafae04.zip |
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
-rw-r--r-- | src/fe-text/gui-entry.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |