summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-25 05:42:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-25 05:42:09 (GMT)
commit27cdbeeb3a3582ec447eecaf0963a22790a4e418 (patch)
tree7da1f34eaf9ff213c6988ce546829568c5ee7a7e /generic
parenta29fa51c0eacb2e4a9a420da939ca5517383a9b3 (diff)
parent0dc5fc34214057ee46ff58d247f0baa0dc75578a (diff)
downloadtk-27cdbeeb3a3582ec447eecaf0963a22790a4e418.zip
tk-27cdbeeb3a3582ec447eecaf0963a22790a4e418.tar.gz
tk-27cdbeeb3a3582ec447eecaf0963a22790a4e418.tar.bz2
patch 3476698: Patch for failing test text-31.11
Diffstat (limited to 'generic')
-rw-r--r--generic/tkText.c1
-rw-r--r--generic/tkText.h7
2 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index d4bc065..6b42489 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -2098,6 +2098,7 @@ ConfigureText(
textPtr->abortSelections = 1;
}
}
+ textPtr->sharedTextPtr->stateEpoch++;
}
/*
diff --git a/generic/tkText.h b/generic/tkText.h
index 289e64b..4ffdc8a 100644
--- a/generic/tkText.h
+++ b/generic/tkText.h
@@ -561,9 +561,10 @@ typedef struct TkSharedText {
* Each "object" used for this table is the
* name of a tag. */
int stateEpoch; /* This is incremented each time the B-tree's
- * contents change structurally, and means
- * that any cached TkTextIndex objects are no
- * longer valid. */
+ * contents change structurally, or when the
+ * start/end limits change, and means that any
+ * cached TkTextIndex objects are no longer
+ * valid. */
/*
* Information related to the undo/redo functionality.