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 | ecb4e238565152c913a65d2eb5d8ad782793b474 (patch) | |
tree | d5be70b19e023e63879342819ad51865ebe26fd1 | |
parent | 0253e18f4273fb5354b29beca73e4835ec02058f (diff) | |
download | tk-ecb4e238565152c913a65d2eb5d8ad782793b474.zip tk-ecb4e238565152c913a65d2eb5d8ad782793b474.tar.gz tk-ecb4e238565152c913a65d2eb5d8ad782793b474.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; } |