summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-02-08 19:17:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-02-08 19:17:01 (GMT)
commitc64e1f5d87429b3278f38e9b89cfc8f6fe7767a6 (patch)
tree725cb54e8145c728a3cdd55719f56cff241245d5 /generic
parentc8f626a51dd7139e69c1c685e6431046e548bad0 (diff)
parent173f7cf4cfa6289eab436d64654e37090f2616f3 (diff)
downloadtk-c64e1f5d87429b3278f38e9b89cfc8f6fe7767a6.zip
tk-c64e1f5d87429b3278f38e9b89cfc8f6fe7767a6.tar.gz
tk-c64e1f5d87429b3278f38e9b89cfc8f6fe7767a6.tar.bz2
merge 8.5
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 133a7d7..91642f9 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4683,6 +4683,9 @@ TextChanged(
*/
lastPtr = FindDLine(textPtr, dInfoPtr->dLinePtr, &rounded);
+ while ((lastPtr != NULL) && (TkTextIndexCmp(&lastPtr->index, &rounded) < 0)) {
+ lastPtr = lastPtr->nextPtr;
+ }
/*
* At least one display line is supposed to change. This makes the