diff options
author | fvogel <fvogelnew1@free.fr> | 2016-02-07 19:21:04 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-02-07 19:21:04 (GMT) |
commit | 44d53c2a50cf59036c8d2b2de7f86602ce1bffcc (patch) | |
tree | d5be70b19e023e63879342819ad51865ebe26fd1 | |
parent | 0aae918ef5abf367ef50b0b60c352bab3104b987 (diff) | |
download | tk-44d53c2a50cf59036c8d2b2de7f86602ce1bffcc.zip tk-44d53c2a50cf59036c8d2b2de7f86602ce1bffcc.tar.gz tk-44d53c2a50cf59036c8d2b2de7f86602ce1bffcc.tar.bz2 |
while is better than if because it deals with wrapped lines then.
-rw-r--r-- | generic/tkTextDisp.c | 2 |
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; } |