summaryrefslogtreecommitdiffstats
path: root/doc/text.n
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-06-29 21:57:04 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-06-29 21:57:04 (GMT)
commitda6ca47d6d53db41a974859bf961ddc2d8f9d1d3 (patch)
treebc84379b885e86a9c9c10b4d3cefe33ad7ba76fe /doc/text.n
parent69cded06b737884b3c2f111d3a3a40db146bcef1 (diff)
downloadtk-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.n7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/text.n b/doc/text.n
index b11363d..1ccadbb 100644
--- a/doc/text.n
+++ b/doc/text.n
@@ -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.