summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-12-20 22:09:14 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-12-20 22:09:14 (GMT)
commit801439653efba1124e5dc705bdcd018062719562 (patch)
treec4cf25a738eec82e8c07533d85598552a5895f69 /generic
parent816ab6c14bd318a6918e1cb3cd97e1de92419e1a (diff)
downloadtk-801439653efba1124e5dc705bdcd018062719562.zip
tk-801439653efba1124e5dc705bdcd018062719562.tar.gz
tk-801439653efba1124e5dc705bdcd018062719562.tar.bz2
There could be false negatives with [.text pendingsync] when line metrics calculation is in the middle of a long line.
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);
}
/*