summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/vte.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c20ef9..1584b7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-14 Havoc Pennington <hp@pobox.com>
+
+ * src/vte.c (vte_terminal_get_cursor_position): decrement spaces
+ as we go through the loop, it was nice and infinite.
+
2002-07-13 nalin
* src/vte.c (vte_terminal_get_text): Add the proper number of attribute
structs to the attribute array to fix crashes which occurred when the
diff --git a/src/vte.c b/src/vte.c
index e41ff86..5010ddc 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -7182,6 +7182,7 @@ vte_terminal_get_text(VteTerminal *terminal,
/* Stuff any saved spaces in. */
while (spaces > 0) {
string = g_string_append_c(string, ' ');
+ --spaces;
}
/* Stuff the charcter in this cell. */
string = g_string_append_unichar(string, pcell->c);