From 8264b65939fcfca0020da485ee76d3a280a99625 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 17 Sep 2006 12:26:04 +0000 Subject: [PATCH] Fix off-by-one error. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4352 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index f63d8269..7dcec358 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -242,7 +242,7 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos) } /* clear the rest of the input line */ - if (end_xpos == term_width) + if (end_xpos == term_width-1) term_clrtoeol(root_window); else { while (xpos < end_xpos) {