From 940954ce6034eac3de51350f4d546ed7279e7ec9 Mon Sep 17 00:00:00 2001 From: fvogel Date: Wed, 8 Jun 2016 08:34:52 +0000 Subject: Updated documentation regarding return values for [.text edit undo/redo] --- doc/text.n | 12 +++++++----- 1 file 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 -- cgit v0.12