diff options
author | Neil <nyamatongwe@gmail.com> | 2024-02-18 08:30:04 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-02-18 08:30:04 +1100 |
commit | 6c1c08e08029f3daeba6822dec4487e1cddae445 (patch) | |
tree | 80770e3f8c0cbc81f01be012cb92074794677cb4 /src/UndoHistory.cxx | |
parent | f39367fc4c7af72caef8e20b1e9b1a038e242b0a (diff) | |
download | scintilla-mirror-6c1c08e08029f3daeba6822dec4487e1cddae445.tar.gz |
Restore change history when restoring undo history.
Diffstat (limited to 'src/UndoHistory.cxx')
-rw-r--r-- | src/UndoHistory.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/UndoHistory.cxx b/src/UndoHistory.cxx index 810cd9a14..aac802dfd 100644 --- a/src/UndoHistory.cxx +++ b/src/UndoHistory.cxx @@ -474,6 +474,10 @@ Sci::Position UndoHistory::Position(int action) const noexcept { return actions.positions.SignedValueAt(action); } +Sci::Position UndoHistory::Length(int action) const noexcept { + return actions.lengths.SignedValueAt(action); +} + std::string_view UndoHistory::Text(int action) noexcept { // Assumes first call after any changes is for action 0. // TODO: may need to invalidate memory in other circumstances |