diff options
author | fvogel <fvogel@noemail.net> | 2015-06-29 21:57:04 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2015-06-29 21:57:04 (GMT) |
commit | c5ff8a991b511e1a4aa1c6e655d56d9aa53028c6 (patch) | |
tree | bc84379b885e86a9c9c10b4d3cefe33ad7ba76fe /doc/text.n | |
parent | ff2f789fb27bfa3fefdf8328dc0ad2a35b5eab19 (diff) | |
download | tk-c5ff8a991b511e1a4aa1c6e655d56d9aa53028c6.zip tk-c5ff8a991b511e1a4aa1c6e655d56d9aa53028c6.tar.gz tk-c5ff8a991b511e1a4aa1c6e655d56d9aa53028c6.tar.bz2 |
Fixed bug [2886436fff] - [.txt delete] deletes before start index
FossilOrigin-Name: 66bd0d4db85507229f683324787c8634ddc6efbb
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. |