[vte] widget: Fix an off-by-one in TAB/CJK cleanup on deleting a character
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix an off-by-one in TAB/CJK cleanup on deleting a character
- Date: Tue, 17 Jun 2014 17:25:04 +0000 (UTC)
commit b9dad4a2d5515c8facf5b64f1a0b0cd43da839ca
Author: Egmont Koblinger <egmont gmail com>
Date: Tue Jun 17 19:24:31 2014 +0200
widget: Fix an off-by-one in TAB/CJK cleanup on deleting a character
https://bugzilla.gnome.org/show_bug.cgi?id=731788
src/vteseq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vteseq.c b/src/vteseq.c
index aff32eb..6c69614 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -918,7 +918,7 @@ vte_sequence_handler_cursor_back_tab (VteTerminal *terminal, GValueArray *params
terminal->pvt->screen->cursor_current.col = newcol;
}
-/* Clear from the cursor position to the beginning of the line. */
+/* Clear from the cursor position (inclusive!) to the beginning of the line. */
static void
_vte_sequence_handler_cb (VteTerminal *terminal, GValueArray *params)
{
@@ -931,7 +931,7 @@ _vte_sequence_handler_cb (VteTerminal *terminal, GValueArray *params)
/* Get the data for the row which the cursor points to. */
rowdata = _vte_terminal_ensure_row(terminal);
/* Clean up Tab/CJK fragments. */
- _vte_terminal_cleanup_fragments (terminal, 0, screen->cursor_current.col);
+ _vte_terminal_cleanup_fragments (terminal, 0, screen->cursor_current.col + 1);
/* Clear the data up to the current column with the default
* attributes. If there is no such character cell, we need
* to add one. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]