summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-03-27 15:11:32 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-03-27 15:11:32 (GMT)
commit3b50c2352b6b0e6c46ba384ec7795ecedafd09e4 (patch)
tree7d706f6c1eeada6dca99711a031e0d88e9d2dcf6 /doc
parent5cfd06f3a3c750bd1c3e57f6a69de9ebf18c8615 (diff)
parent27c210cc9a79fc426bd62757e1410f797012f3e0 (diff)
downloadtk-3b50c2352b6b0e6c46ba384ec7795ecedafd09e4.zip
tk-3b50c2352b6b0e6c46ba384ec7795ecedafd09e4.tar.gz
tk-3b50c2352b6b0e6c46ba384ec7795ecedafd09e4.tar.bz2
Fixed [18c08df753] - Change of behaviour for text widget last newline
Diffstat (limited to 'doc')
-rw-r--r--doc/text.n8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/text.n b/doc/text.n
index d2f0c82..32019ce 100644
--- a/doc/text.n
+++ b/doc/text.n
@@ -1216,8 +1216,12 @@ 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, deletion of complete lines of
+text up to the end of the text will also delete the newline character just
+before the deleted block so that it is replaced by the new final newline
+of the text widget.
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.