aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UndoHistory.cxx
AgeCommit message (Collapse)AuthorFilesLines
2025-01-22Bug [#1224]. Remember selection in undo history. SCI_SETSELECTIONUNDOHISTORY.Neil1-0/+8
2024-07-28Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and itsNeil1-0/+4
nesting depth.
2024-03-23Feature [feature-requests:#1512]. Simplify ScaledVector::PushBack.Zufu Liu1-5/+5
Prefer UndoActions::Length to UndoActions::lengths.ValueAt.
2024-03-15Feature [feature-requests:#1512]. Encapsulate access to position and length.Zufu Liu1-14/+21
2024-03-11Feature [feature-requests:#1512]. Simplify WriteValue.Zufu Liu1-2/+3
2024-03-09Bug [#2432]. Fix redo failure.Neil1-0/+2
2024-03-08Feature [feature-requests:#1512]. Simplify ElementForValue.Zufu Liu1-6/+5
2024-03-08Reformat with astyle.Neil1-1/+1
2024-03-02Feature [feature-requests:#1511] Add mayCoalesce argument to BeginUndoAction.John Ehresman1-2/+2
2024-02-28Fix failures with values larger than 0xffffff in 32-bit builds.Neil1-26/+22
2024-02-27Restore change history to the extent possible when restoring undo history.Neil1-4/+4
2024-02-18Restore change history when restoring undo history.Neil1-0/+4
2024-02-16Implement detach point access with SCI_SETUNDODETACH and SCI_GETUNDODETACH.Neil1-0/+12
Write more documentation for undo history.
2024-02-15Perform validation of undo state when SCI_SETUNDOCURRENT called, setting statusNeil1-6/+48
when invalid.
2024-02-14Ensure no exceptions when deleting undo history.Neil1-1/+6
2024-02-09Implement API to read and write undo history from applications.Neil1-2/+93
2024-02-09Avoid overhead of extra start actions that delimited user operations. Now reliesNeil1-91/+95
on mayCoalesce flag to indicate that a user operation is complete when false.
2024-02-02Implement ScaledVector to store undo positions and lengths using less memory inNeil1-16/+120
most cases. Often reduces memory use by around 50% for 32-bit builds and 75% for 64-bit builds as it may use 2-bytes for a position or length instead of 4 or 8 bytes.
2024-02-01Change UndoHistory from an array-of-structs to a struct-of-arrays to allow eachNeil1-46/+62
element to use minimum memory. Start by reducing (type,mayCoalesce) from 8 or 4 bytes to 1 byte.
2024-02-01Prefer member initializers. Simplify logic.Neil1-9/+1
2024-02-01Store undo text in ScrapStack, a single allocation instead of one allocation perNeil1-15/+57
step. This saves about 50% for a long sequence of single byte actions.
2024-02-01Add UndoAction class as internal type for undo actions and make Action a structNeil1-3/+22
that is used for reporting undo steps to Document. This will allow further minimization of undo memory use.
2024-02-01Move UndoHistory into its own module that is accessible from CellBuffer andNeil1-0/+295
tests but hidden from most of Scintilla. Access through std::unique_ptr.