summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-07-14 19:18:58 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-07-14 19:18:58 (GMT)
commit6b9f74b94131d093483c64f7ceabf120c0d7cafc (patch)
tree648e06906456a16704104d3ca163756b4175a46b /generic
parentb953acd1adcee2fe7ed421057e3777dfc262d8a3 (diff)
downloadtk-6b9f74b94131d093483c64f7ceabf120c0d7cafc.zip
tk-6b9f74b94131d093483c64f7ceabf120c0d7cafc.tar.gz
tk-6b9f74b94131d093483c64f7ceabf120c0d7cafc.tar.bz2
Tried to be even clearer.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkText.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 5042582..eb2d77a 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -3000,16 +3000,15 @@ DeleteIndexRange(
* dummy empty line at the end of the text. If the final newline of the
* file (just before the dummy line) is being deleted, then back up index
* to just before the newline. If there is a newline just before the first
- * character being deleted, then back up the first index too, so that an
- * even number of lines gets deleted. The idea is that a deletion
- * involving a range starting at a line start and including the final \n
- * (i.e. index2 is "end") is an attempt to delete complete lines, so the
- * \n before the deleted block shall become the new final \n. Furthermore,
- * remove any tags that are present on the newline that isn't going to be
- * deleted after all (this simulates deleting the newline and then adding
- * a "clean" one back again). Note that index1 and index2 might now be
- * equal again which means that no text will be deleted but tags might be
- * removed.
+ * character being deleted, then back up the first index too. The idea is
+ * that a deletion involving a range starting at a line start and
+ * including the final \n (i.e. index2 is "end") is an attempt to delete
+ * complete lines, so the \n before the deleted block shall become the new
+ * final \n. Furthermore, remove any tags that are present on the newline
+ * that isn't going to be deleted after all (this simulates deleting the
+ * newline and then adding a "clean" one back again). Note that index1 and
+ * index2 might now be equal again which means that no text will be
+ * deleted but tags might be removed.
*/
line1 = TkBTreeLinesTo(textPtr, index1.linePtr);