diff options
author | fvogel <fvogelnew1@free.fr> | 2014-12-30 16:38:53 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2014-12-30 16:38:53 (GMT) |
commit | f2d8de7f6552400a199af9397e3cb0124f0bd844 (patch) | |
tree | 912df86a341284817326e2c4dfb8558c2a4a3bb1 /generic | |
parent | 334f6bdc34da43118ed37b14c9b9112db2bfd326 (diff) | |
download | tk-f2d8de7f6552400a199af9397e3cb0124f0bd844.zip tk-f2d8de7f6552400a199af9397e3cb0124f0bd844.tar.gz tk-f2d8de7f6552400a199af9397e3cb0124f0bd844.tar.bz2 |
Fixed comments in TextChanged
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 8 |
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; } |