diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-18 12:47:38 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-18 12:47:38 (GMT) |
commit | 63d55485eb9be2e21c911bdc78e0367d8d7ecb2c (patch) | |
tree | 80450d56ce49849889e9233fac6643a3589623a0 /generic/tkTextDisp.c | |
parent | c6eb4388bed08a7f24b9de6cd12d1500cab024ca (diff) | |
download | tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.zip tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.tar.gz tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.tar.bz2 |
Missed more than a few TIP 660 changes. Possibly more to come.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 9673996..b3096f9 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -3072,7 +3072,7 @@ AsyncUpdateLineMetrics( * and we've reached the last line, then we're done. */ - if (dInfoPtr->metricEpoch == TCL_INDEX_NONE + if (dInfoPtr->metricEpoch == -1 && lineNum == dInfoPtr->lastMetricUpdateLine) { /* * We have looped over all lines, so we're done. We must release our @@ -3256,7 +3256,7 @@ TkTextUpdateLineMetrics( * then we can't be done. */ - if (textPtr->dInfoPtr->metricEpoch == TCL_INDEX_NONE && lineNum == endLine) { + if (textPtr->dInfoPtr->metricEpoch == -1 && lineNum == endLine) { /* |