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 | 80adb8d2b8c0fcf8a754e324f9234e1aa5db0853 (patch) | |
tree | 912df86a341284817326e2c4dfb8558c2a4a3bb1 | |
parent | 3cbc7e616f5e2dd3ee1d076d43bbba9c2aebf95f (diff) | |
download | tk-80adb8d2b8c0fcf8a754e324f9234e1aa5db0853.zip tk-80adb8d2b8c0fcf8a754e324f9234e1aa5db0853.tar.gz tk-80adb8d2b8c0fcf8a754e324f9234e1aa5db0853.tar.bz2 |
Fixed comments in TextChanged
-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; } |