diff options
author | fvogel <fvogel@noemail.net> | 2015-12-26 21:23:47 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2015-12-26 21:23:47 (GMT) |
commit | 5295ae2f2daedc88fdc7f5ebc2b5daafd89be373 (patch) | |
tree | 965afc703d7d1eb3e3227d667ca88873dbd2b54d /generic | |
parent | e126c00b0cbde672f52cd8a39ed9114373662eb6 (diff) | |
parent | 88a2ec52c0403f619ded36af5e0fa7ecb7e0d356 (diff) | |
download | tk-5295ae2f2daedc88fdc7f5ebc2b5daafd89be373.zip tk-5295ae2f2daedc88fdc7f5ebc2b5daafd89be373.tar.gz tk-5295ae2f2daedc88fdc7f5ebc2b5daafd89be373.tar.bz2 |
Merged core-8-5-branch
FossilOrigin-Name: 078644f165f19a657f1bb733b3ec6ff5ea72348c
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 39311a6..807009b 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -4867,9 +4867,16 @@ TextRedrawTag( /* * Round up the starting position if it's before the first line visible on - * the screen (we only care about what's on the screen). + * the screen (we only care about what's on the screen). Beware that the + * display info structure might need update, for instance if we arrived + * here from an 'after idle' script removing tags in a range whose + * display lines (and dInfo) were partially invalidated by a previous + * delete operation in the text widget. */ + if (dInfoPtr->flags & DINFO_OUT_OF_DATE) { + UpdateDisplayInfo(textPtr); + } dlPtr = dInfoPtr->dLinePtr; if (dlPtr == NULL) { return; |