summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-07-14 19:52:17 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-07-14 19:52:17 +0000
commite4cfa8d65673f808fcef56150a05e04f1cfd2fdf (patch)
tree544a6a7a44d45f0526e8ed08ce8ae43d9c42d857
parent8320edb7631fd570b69503def7ab2ce58b19df6c (diff)
decrement spaces as we go through the loop, it was nice and infinite.
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.
-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);