summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-01-22 22:15:22 +0000
committerChris Wilson <cpwilson@src.gnome.org>2007-01-22 22:15:22 +0000
commitd3cae283a93c3a7df7f611ad6a8f50991943173d (patch)
tree02ea2e0ed9d41f616b2d01d8e24d6f92b87bb8e3
parent7cc6b5148f46647a9ebf1cc35ace5c410f13e3d7 (diff)
Bug 399137 - continuation.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk> Bug 399137 - continuation. * src/vteaccess.c: (vte_terminal_accessible_text_modified): Classic bug: clen = cp - old rather than the more correct clen = cp - current svn path=/trunk/; revision=1504
-rw-r--r--ChangeLog10
-rw-r--r--src/vteaccess.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b27d099..176b8b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
+ Bug 399137 - continuation.
+
+ * src/vteaccess.c: (vte_terminal_accessible_text_modified):
+ Classic bug:
+ clen = cp - old
+ rather than the more correct
+ clen = cp - current
+
+2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
+
* src/vteapp.c: (char_size_changed), (char_size_realized), (main):
Don't try to perform gdk operations on unrealized windows.
diff --git a/src/vteaccess.c b/src/vteaccess.c
index 0711058..4b6db01 100644
--- a/src/vteaccess.c
+++ b/src/vteaccess.c
@@ -513,7 +513,7 @@ vte_terminal_accessible_text_modified(VteTerminal *terminal, gpointer data)
} while (g_utf8_get_char (op) == g_utf8_get_char (cp));
/* recompute the respective lengths */
olen = op - old;
- clen = cp - old;
+ clen = cp - current;
/* At least one of them has to have text the other
* doesn't. */
g_assert((clen > offset) || (olen > offset));