diff options
author | fvogel <fvogelnew1@free.fr> | 2019-01-01 23:20:01 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-01-01 23:20:01 (GMT) |
commit | 78c241039c466793240f3f8bac5bb032d52da99a (patch) | |
tree | 6168bbd642fba9ebe5b02d95da4becd463b185d3 /generic/tkTextDisp.c | |
parent | a16300f3515fc588292543bc2d44af9a332fb84d (diff) | |
download | tk-78c241039c466793240f3f8bac5bb032d52da99a.zip tk-78c241039c466793240f3f8bac5bb032d52da99a.tar.gz tk-78c241039c466793240f3f8bac5bb032d52da99a.tar.bz2 |
Change variable name for something clearer.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index cc0a1e1..6604579 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -3117,7 +3117,7 @@ AsyncUpdateLineMetrics( * line metrics asynchronous update. These events should only * be sent when the sync status has changed. So this function * compares the requested state with the state saved in the - * TkTest structure, and only generates the event if they are + * TkText structure, and only generates the event if they are * different. This means that it is safe to call this function * at any time when the state is known. * @@ -3199,9 +3199,9 @@ TkTextUpdateLineMetrics( TkTextLine *linePtr = NULL; int count = 0; int totalLines = TkBTreeNumLines(textPtr->sharedTextPtr->tree, textPtr); - int fullSync = (lineNum == 0 && - endLine == totalLines && - doThisMuch == -1); + int fullUpdateRequested = (lineNum == 0 && + endLine == totalLines && + doThisMuch == -1); if (totalLines == 0) { /* @@ -3369,8 +3369,9 @@ TkTextUpdateLineMetrics( GetYView(textPtr->interp, textPtr, 1); } - if (fullSync) { + if (fullUpdateRequested) { TextDInfo *dInfoPtr = textPtr->dInfoPtr; + dInfoPtr->lastMetricUpdateLine = lineNum; dInfoPtr->currentMetricUpdateLine = lineNum; GenerateWidgetViewSyncEvent(textPtr, 1); |