summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2015-12-20 22:09:14 (GMT)
committerfvogel <fvogel@noemail.net>2015-12-20 22:09:14 (GMT)
commitb086d4701bb66c80bbd4493aa927d22566bde72c (patch)
treec4cf25a738eec82e8c07533d85598552a5895f69 /generic
parent62434261bc467e2656c83dd7403e9d6f77cd11fc (diff)
downloadtk-b086d4701bb66c80bbd4493aa927d22566bde72c.zip
tk-b086d4701bb66c80bbd4493aa927d22566bde72c.tar.gz
tk-b086d4701bb66c80bbd4493aa927d22566bde72c.tar.bz2
There could be false negatives with [.text pendingsync] when line metrics calculation is in the middle of a long line.
FossilOrigin-Name: 5fc264266884c819ee09370f4e390d7718e8ebb1
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 108cc4a..ba584ac 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -6144,8 +6144,9 @@ TkTextPendingsync(
TextDInfo *dInfoPtr = textPtr->dInfoPtr;
return (
- (dInfoPtr->lastMetricUpdateLine - dInfoPtr->currentMetricUpdateLine) ?
- 1 : 0);
+ ((dInfoPtr->metricEpoch == -1) &&
+ (dInfoPtr->lastMetricUpdateLine == dInfoPtr->currentMetricUpdateLine)) ?
+ 0 : 1);
}
/*