[vte] Bug 618097 - Broken backtab (cbt)



commit bc8df68917912f333ebdab8135800e4d3632dcd4
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Jul 22 13:05:04 2010 -0400

    Bug 618097 - Broken backtab (cbt)

 src/vteseq.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/vteseq.c b/src/vteseq.c
index 27c09e6..3fff7e8 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -975,20 +975,15 @@ vte_sequence_handler_bt (VteTerminal *terminal, GValueArray *params)
 
 	if (terminal->pvt->tabstops != NULL) {
 		/* Find the next tabstop. */
-		while (newcol >= 0) {
+		while (newcol > 0) {
+			newcol--;
 			if (_vte_terminal_get_tabstop(terminal,
 						     newcol % terminal->column_count)) {
 				break;
 			}
-			newcol--;
 		}
 	}
 
-	/* If we have no tab stops, stop at the first column. */
-	if (newcol <= 0) {
-		newcol = 0;
-	}
-
 	/* Warp the cursor. */
 	_vte_debug_print(VTE_DEBUG_PARSE,
 			"Moving cursor to column %ld.\n", (long)newcol);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]