summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-12-30 16:38:53 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-12-30 16:38:53 (GMT)
commitf2d8de7f6552400a199af9397e3cb0124f0bd844 (patch)
tree912df86a341284817326e2c4dfb8558c2a4a3bb1 /generic
parent334f6bdc34da43118ed37b14c9b9112db2bfd326 (diff)
downloadtk-f2d8de7f6552400a199af9397e3cb0124f0bd844.zip
tk-f2d8de7f6552400a199af9397e3cb0124f0bd844.tar.gz
tk-f2d8de7f6552400a199af9397e3cb0124f0bd844.tar.bz2
Fixed comments in TextChanged
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 56d1003..6d49488 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4669,11 +4669,10 @@ TextChanged(
firstPtr = FindDLine(textPtr, dInfoPtr->dLinePtr, &rounded);
if (firstPtr == NULL) {
-
/*
* index1Ptr pertains to no display line, i.e this index is after
* the last display line. Since index2Ptr is after index1Ptr, there
- * are no display line to free/redisplay and we can return early.
+ * is no display line to free/redisplay and we can return early.
*/
return;
@@ -4698,8 +4697,8 @@ TextChanged(
/*
* 'rounded' now points to the start of a display line as well as the
- * real (non elided) start of a logical line, and this index is the
- * closest after index2Ptr.
+ * start of a logical line not merged with its previous line, and
+ * this index is the closest after index2Ptr.
*/
lastPtr = FindDLine(textPtr, dInfoPtr->dLinePtr, &rounded);
@@ -4713,6 +4712,7 @@ TextChanged(
* Note that lastPtr != NULL here, otherwise we would have returned
* earlier when we tested for firstPtr being NULL.
*/
+
if (lastPtr == firstPtr) {
lastPtr = lastPtr->nextPtr;
}