diff options
author | fvogelnew1@free.fr <fvogel> | 2014-12-10 21:52:21 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2014-12-10 21:52:21 (GMT) |
commit | 72256b9fbda9f860e0afceca8753a707242e3527 (patch) | |
tree | 495157054e389dce710089a07c06c53efd3460fe /generic | |
parent | 199f08f6905c9190d6f78432d2f6cb8b6790d3c5 (diff) | |
download | tk-72256b9fbda9f860e0afceca8753a707242e3527.zip tk-72256b9fbda9f860e0afceca8753a707242e3527.tar.gz tk-72256b9fbda9f860e0afceca8753a707242e3527.tar.bz2 |
Fixed indentation in FindDLine
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 4715864..5f266f8 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -6495,26 +6495,26 @@ FindDLine( */ while (TkTextIndexCmp(&dlPtr->index,indexPtr) < 0) { - dlPtrPrev = dlPtr; - dlPtr = dlPtr->nextPtr; - if (dlPtr == NULL) { - /* - * We're past the last display line, either because the desired - * index lies past the visible text, or because the desired index - * is on the last display line showing the last logical line. - */ - indexPtr2 = dlPtrPrev->index; - TkTextFindDisplayLineEnd(textPtr, &indexPtr2, 1, NULL); - if (TkTextIndexCmp(&indexPtr2,indexPtr) >= 0) { - dlPtr = dlPtrPrev; - break; - } else { - return NULL; - } + dlPtrPrev = dlPtr; + dlPtr = dlPtr->nextPtr; + if (dlPtr == NULL) { + /* + * We're past the last display line, either because the desired + * index lies past the visible text, or because the desired index + * is on the last display line showing the last logical line. + */ + indexPtr2 = dlPtrPrev->index; + TkTextFindDisplayLineEnd(textPtr, &indexPtr2, 1, NULL); + if (TkTextIndexCmp(&indexPtr2,indexPtr) >= 0) { + dlPtr = dlPtrPrev; + break; + } else { + return NULL; + } } if (TkTextIndexCmp(&dlPtr->index,indexPtr) > 0) { dlPtr = dlPtrPrev; - break; + break; } } |