diff options
author | culler <culler> | 2019-01-01 19:03:49 (GMT) |
---|---|---|
committer | culler <culler> | 2019-01-01 19:03:49 (GMT) |
commit | e43d3df502249e8b7e104bb575aa7fdb3cf40144 (patch) | |
tree | 69a0286de3a8b2281703c4391efb766c6cca2bc5 /generic | |
parent | 95905874bab74564f6acab0f3092d0142c307f4b (diff) | |
download | tk-e43d3df502249e8b7e104bb575aa7fdb3cf40144.zip tk-e43d3df502249e8b7e104bb575aa7fdb3cf40144.tar.gz tk-e43d3df502249e8b7e104bb575aa7fdb3cf40144.tar.bz2 |
The sync command needs to ensure that no redraw is pending before updating
the line metrics. Otherwise pendingsync will remain true after the sync.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkText.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 5f2abb2..5f248a8 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -1560,6 +1560,7 @@ TextWidgetObjCmd( Tcl_DecrRefCount(textPtr->afterSyncCmd); } textPtr->afterSyncCmd = NULL; + while (Tcl_DoOneEvent(TCL_IDLE_EVENTS)) {} TkTextUpdateLineMetrics(textPtr, 0, TkBTreeNumLines(textPtr->sharedTextPtr->tree, textPtr), -1); break; |