mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
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:
parent
1651390651
commit
e2cc91c19a
1 changed files with 2 additions and 0 deletions
|
|
@ -242,6 +242,7 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* clear the rest of the input line */
|
/* clear the rest of the input line */
|
||||||
|
if (xpos < end_xpos) {
|
||||||
if (end_xpos == term_width)
|
if (end_xpos == term_width)
|
||||||
term_clrtoeol(root_window);
|
term_clrtoeol(root_window);
|
||||||
else {
|
else {
|
||||||
|
|
@ -250,6 +251,7 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos)
|
||||||
xpos++;
|
xpos++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gui_entry_draw(GUI_ENTRY_REC *entry)
|
static void gui_entry_draw(GUI_ENTRY_REC *entry)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue