summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2012-02-18 21:55:28 (GMT)
committerfvogel <fvogelnew1@free.fr>2012-02-18 21:55:28 (GMT)
commit1487608db176d526e0c03938073340f5f2a068eb (patch)
treeb3a7813f9f7a65cfa210096ad03d36a777bc56e0 /generic/tkText.c
parent3ea0c8057eebd5bf0c51ec97477ef0715fb8d33b (diff)
downloadtk-1487608db176d526e0c03938073340f5f2a068eb.zip
tk-1487608db176d526e0c03938073340f5f2a068eb.tar.gz
tk-1487608db176d526e0c03938073340f5f2a068eb.tar.bz2
Bug-3487407: Weird text indicesbug_1630262
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 18cbcf4..6652f3d 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -2107,6 +2107,10 @@ ConfigureText(
* Also, clamp the insert and current (unshared) marks to the new
* -startline/-endline range limits of the widget. All other (shared)
* marks are unchanged.
+ * The return value of TkTextMarkNameToIndex does not need to be
+ * checked: "insert" and "current" marks always exist, and the
+ * purpose of the code below precisely is to move them inside the
+ * -startline/-endline range.
*/
textPtr->sharedTextPtr->stateEpoch++;