[vte/vte-next] emulation: Fix off-by-one error in interpretation of ECH (erase character)
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next] emulation: Fix off-by-one error in interpretation of ECH (erase character)
- Date: Mon, 16 Apr 2012 17:39:14 +0000 (UTC)
commit 3b17c3c5177ec754c6adecd75726102fac9ca412
Author: Anders Kaseorg <andersk mit edu>
Date: Thu Feb 16 19:16:36 2012 -0500
emulation: Fix off-by-one error in interpretation of ECH (erase character)
_vte_row_data_fill fills the row up to but *not including* len, so we
need to pass len = col + 1.
https://bugzilla.gnome.org/show_bug.cgi?id=670037
Signed-off-by: Anders Kaseorg <andersk mit edu>
(cherry picked from commit 4e79964afe6429f5e5846dbc6a3ebc264e34f1dd)
src/vteseq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vteseq.c b/src/vteseq.c
index d0e4cbd..04614db 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -1444,7 +1444,7 @@ vte_sequence_handler_ec (VteBuffer *buffer, GValueArray *params)
*cell = screen->color_defaults;
} else {
/* Add new cells until we have one here. */
- _vte_row_data_fill (rowdata, &screen->color_defaults, col);
+ _vte_row_data_fill (rowdata, &screen->color_defaults, col + 1);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]