diff options
author | fvogel <fvogelnew1@free.fr> | 2012-02-18 21:55:28 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-02-18 21:55:28 (GMT) |
commit | 0523d6d036875e705d684387f3efbd37d8765349 (patch) | |
tree | b3a7813f9f7a65cfa210096ad03d36a777bc56e0 /generic/tkText.c | |
parent | b500aa76a018ca368a5e9cae427f5c863eef889d (diff) | |
download | tk-0523d6d036875e705d684387f3efbd37d8765349.zip tk-0523d6d036875e705d684387f3efbd37d8765349.tar.gz tk-0523d6d036875e705d684387f3efbd37d8765349.tar.bz2 |
Bug-3487407: Weird text indices
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 4 |
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++; |