summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-06-08 08:34:52 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-06-08 08:34:52 (GMT)
commit940954ce6034eac3de51350f4d546ed7279e7ec9 (patch)
tree40584f27ada5d518a6e77eb213a445bd6feba74f
parenteb3fa653566d6bf130804d7d800f960d72819597 (diff)
downloadtk-940954ce6034eac3de51350f4d546ed7279e7ec9.zip
tk-940954ce6034eac3de51350f4d546ed7279e7ec9.tar.gz
tk-940954ce6034eac3de51350f4d546ed7279e7ec9.tar.bz2
Updated documentation regarding return values for [.text edit undo/redo]
-rw-r--r--doc/text.n12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/text.n b/doc/text.n
index e2bb01f..9633e37 100644
--- a/doc/text.n
+++ b/doc/text.n
@@ -1305,8 +1305,9 @@ of the widget to \fIboolean\fR.
\fIpathName \fBedit redo\fR
.
When the \fB\-undo\fR option is true, reapplies the last undone edits provided
-no other edits were done since then. Generates an error when the redo stack is
-empty. Does nothing when the \fB\-undo\fR option is false.
+no other edits were done since then, and returns a list of indices indicating
+what ranges were changed by the redo operation. Generates an error when the
+redo stack is empty. Does nothing when the \fB\-undo\fR option is false.
.TP
\fIpathName \fBedit reset\fR
.
@@ -1319,9 +1320,10 @@ Inserts a separator (boundary) on the undo stack. Does nothing when the
.TP
\fIpathName \fBedit undo\fR
.
-Undoes the last edit action when the \fB\-undo\fR option is true. An edit
-action is defined as all the insert and delete commands that are recorded on
-the undo stack in between two separators. Generates an error when the undo
+Undoes the last edit action when the \fB\-undo\fR option is true, and returns a
+list of indices indicating what ranges were changed by the undo operation. An
+edit action is defined as all the insert and delete commands that are recorded
+on the undo stack in between two separators. Generates an error when the undo
stack is empty. Does nothing when the \fB\-undo\fR option is false.
.RE
.TP