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)
commit782a8db45288e7cff934def621cef14ebc7e5b27 (patch)
tree193c444f11c1d512296fabe8a999ee7ed52c9de1 /generic
parentcb44b3813858cefddb5b55926a86c26be7922e2f (diff)
downloadtk-782a8db45288e7cff934def621cef14ebc7e5b27.zip
tk-782a8db45288e7cff934def621cef14ebc7e5b27.tar.gz
tk-782a8db45288e7cff934def621cef14ebc7e5b27.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;
}
}