diff options
author | fvogelnew1@free.fr <fvogel> | 2012-02-18 21:55:28 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2012-02-18 21:55:28 (GMT) |
commit | 99d2897e216836eebc64f8de0b94c7e525419a61 (patch) | |
tree | b3a7813f9f7a65cfa210096ad03d36a777bc56e0 /generic/tkText.c | |
parent | 8e4bf05bd090c5174f559b5ab00bf598bc92a902 (diff) | |
download | tk-99d2897e216836eebc64f8de0b94c7e525419a61.zip tk-99d2897e216836eebc64f8de0b94c7e525419a61.tar.gz tk-99d2897e216836eebc64f8de0b94c7e525419a61.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++; |