diff options
author | fvogel <fvogelnew1@free.fr> | 2015-12-20 22:09:14 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-12-20 22:09:14 (GMT) |
commit | 801439653efba1124e5dc705bdcd018062719562 (patch) | |
tree | c4cf25a738eec82e8c07533d85598552a5895f69 /generic | |
parent | 816ab6c14bd318a6918e1cb3cd97e1de92419e1a (diff) | |
download | tk-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.c | 5 |
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); } /* |