summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2019-01-01 16:36:17 (GMT)
committerculler <culler>2019-01-01 16:36:17 (GMT)
commit95905874bab74564f6acab0f3092d0142c307f4b (patch)
tree375ae398510afe58e9340f8bb8b51d8b81c30152
parentf2e772a44b42b74f577a9811522b025ebaae6eb1 (diff)
downloadtk-95905874bab74564f6acab0f3092d0142c307f4b.zip
tk-95905874bab74564f6acab0f3092d0142c307f4b.tar.gz
tk-95905874bab74564f6acab0f3092d0142c307f4b.tar.bz2
Update the TextDinfo when the sync command runs, so that pendingsync will know
that the widget is in sync, as expected by the tests.
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index b974758..cc0a1e1 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -3370,6 +3370,9 @@ TkTextUpdateLineMetrics(
GetYView(textPtr->interp, textPtr, 1);
}
if (fullSync) {
+ TextDInfo *dInfoPtr = textPtr->dInfoPtr;
+ dInfoPtr->lastMetricUpdateLine = lineNum;
+ dInfoPtr->currentMetricUpdateLine = lineNum;
GenerateWidgetViewSyncEvent(textPtr, 1);
}
return lineNum;