diff options
author | fvogel <fvogelnew1@free.fr> | 2015-06-29 21:57:04 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-06-29 21:57:04 (GMT) |
commit | da6ca47d6d53db41a974859bf961ddc2d8f9d1d3 (patch) | |
tree | bc84379b885e86a9c9c10b4d3cefe33ad7ba76fe /doc/text.n | |
parent | 69cded06b737884b3c2f111d3a3a40db146bcef1 (diff) | |
download | tk-da6ca47d6d53db41a974859bf961ddc2d8f9d1d3.zip tk-da6ca47d6d53db41a974859bf961ddc2d8f9d1d3.tar.gz tk-da6ca47d6d53db41a974859bf961ddc2d8f9d1d3.tar.bz2 |
Fixed bug [2886436fff] - [.txt delete] deletes before start index - This is option 2: don't change the behavior of the text widget, but document it better.
Diffstat (limited to 'doc/text.n')
-rw-r--r-- | doc/text.n | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1216,8 +1216,11 @@ If \fIindex2\fR does not specify a position later in the text than \fIindex1\fR then no characters are deleted. If \fIindex2\fR is not specified then the single character at \fIindex1\fR is deleted. -It is not allowable to delete characters in a way that would leave -the text without a newline as the last character. +Attempts to delete characters in a way that would leave +the text without a newline as the last character will be tweaked by the +text widget to avoid this. In particular, attempts to delete complete +lines of text up to the end of the text will result in +deletion of the newline character just preceding \fIindex1\fR. The command returns an empty string. If more indices are given, multiple ranges of text will be deleted. All indices are first checked for validity before any deletions are made. |