aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/ScintillaDoc.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ScintillaDoc.html')
-rw-r--r--doc/ScintillaDoc.html33
1 files changed, 27 insertions, 6 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index 44df71562..3bc5acd90 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -1938,8 +1938,8 @@ struct Sci_TextToFindFull {
<a class="message" href="#SCI_ENDUNDOACTION">SCI_ENDUNDOACTION</a><br />
<a class="message" href="#SCI_GETUNDOSEQUENCE">SCI_GETUNDOSEQUENCE &rarr; int</a><br />
<a class="message" href="#SCI_ADDUNDOACTION">SCI_ADDUNDOACTION(int token, int flags)</a><br />
- <a class="message" href="#SCI_SETSELECTIONUNDOHISTORY">SCI_SETSELECTIONUNDOHISTORY(bool selectionUndoHistory)</a><br />
- <a class="message" href="#SCI_GETSELECTIONUNDOHISTORY">SCI_GETSELECTIONUNDOHISTORY &rarr; bool</a><br />
+ <a class="message" href="#SCI_SETUNDOSELECTIONHISTORY">SCI_SETUNDOSELECTIONHISTORY(int undoSelectionHistory)</a><br />
+ <a class="message" href="#SCI_GETUNDOSELECTIONHISTORY">SCI_GETUNDOSELECTIONHISTORY &rarr; int</a><br />
</code>
<p><b id="SCI_UNDO">SCI_UNDO</b><br />
@@ -2018,14 +2018,35 @@ struct Sci_TextToFindFull {
look like typing or deletions that look like multiple uses of the Backspace or Delete keys.
</p>
- <p><b id="SCI_SETSELECTIONUNDOHISTORY">SCI_SETSELECTIONUNDOHISTORY(bool selectionUndoHistory)</b><br />
- <b id="SCI_GETSELECTIONUNDOHISTORY">SCI_GETSELECTIONUNDOHISTORY &rarr; bool</b><br />
+ <p><b id="SCI_SETUNDOSELECTIONHISTORY">SCI_SETUNDOSELECTIONHISTORY(int undoSelectionHistory)</b><br />
+ <b id="SCI_GETUNDOSELECTIONHISTORY">SCI_GETUNDOSELECTIONHISTORY &rarr; int</b><br />
The selection for each action can be saved and then restored when undo or redo is performed.
- <code>SCI_SETSELECTIONUNDOHISTORY</code> controls this.
- The current <code>bool</code> argument may change to a set of flags.
+ <code>SCI_SETUNDOSELECTIONHISTORY</code> controls this.
There is a memory cost for this feature with a minimum of 150 bytes for each of undo and redo for each recorded action.
Recording may be turned on at any time.</p>
+ <p>The <code class="parameter">undoSelectionHistory</code> argument can be:</p>
+ <table class="standard" summary="Undo selection history state">
+ <tbody valign="top">
+ <tr>
+ <th align="left"><code>SC_UNDO_SELECTION_HISTORY_DISABLED</code></th>
+
+ <td>0</td>
+
+ <td>The default: undo selection history turned off.</td>
+ </tr>
+
+ <tr>
+ <th align="left"><code>SC_UNDO_SELECTION_HISTORY_ENABLED</code></th>
+
+ <td>1</td>
+
+ <td>Restore selection for each undo and redo.</td>
+ </tr>
+
+ </tbody>
+ </table>
+
<h2 id="UndoSaveRestore">Undo Save and Restore</h2>
<p>This feature is unfinished and has limitations.