summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-02-07 19:21:04 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-02-07 19:21:04 (GMT)
commitecb4e238565152c913a65d2eb5d8ad782793b474 (patch)
treed5be70b19e023e63879342819ad51865ebe26fd1 /generic/tkTextDisp.c
parent0253e18f4273fb5354b29beca73e4835ec02058f (diff)
downloadtk-ecb4e238565152c913a65d2eb5d8ad782793b474.zip
tk-ecb4e238565152c913a65d2eb5d8ad782793b474.tar.gz
tk-ecb4e238565152c913a65d2eb5d8ad782793b474.tar.bz2
while is better than if because it deals with wrapped lines then.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index fe69f28..91642f9 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4683,7 +4683,7 @@ TextChanged(
*/
lastPtr = FindDLine(textPtr, dInfoPtr->dLinePtr, &rounded);
- if ((lastPtr != NULL) && (TkTextIndexCmp(&lastPtr->index, &rounded) < 0)) {
+ while ((lastPtr != NULL) && (TkTextIndexCmp(&lastPtr->index, &rounded) < 0)) {
lastPtr = lastPtr->nextPtr;
}