summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-02-08 21:45:03 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-02-08 21:45:03 (GMT)
commit4cf679d27cf1beb50d5806e6173a8071821aff95 (patch)
tree2411c18032a29392cd51db0792093f4cecca3929 /generic/tkTextDisp.c
parent9b3fefa1f082d55d68361c9d4e2f39efec3bc214 (diff)
downloadtk-4cf679d27cf1beb50d5806e6173a8071821aff95.zip
tk-4cf679d27cf1beb50d5806e6173a8071821aff95.tar.gz
tk-4cf679d27cf1beb50d5806e6173a8071821aff95.tar.bz2
Corrected indentation + added an explanatory comment.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 07623c4..960f11a 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -5243,7 +5243,10 @@ TkTextSetYView(
dInfoPtr->newTopPixelOffset = 0;
goto scheduleUpdate;
- }
+ }
+ /*
+ * The line is already on screen, with no need to scroll.
+ */
return;
}
}