summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-12-10 21:52:21 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-12-10 21:52:21 (GMT)
commit965670ffad3c19fef59451e91265d5d333efb873 (patch)
tree193c444f11c1d512296fabe8a999ee7ed52c9de1 /generic
parent61dca66aa752bd2d8698f46fb47a1ec6f88dff77 (diff)
downloadtk-965670ffad3c19fef59451e91265d5d333efb873.zip
tk-965670ffad3c19fef59451e91265d5d333efb873.tar.gz
tk-965670ffad3c19fef59451e91265d5d333efb873.tar.bz2
Fixed indentation in FindDLine
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c34
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;
}
}