aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testCellBuffer.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-11-26Bug [#2458]. Add include of cstdint to provide intptr_t and uintptr_t.Neil1-0/+1
2024-03-09Bug [#2432]. Fix redo failure.Neil1-0/+26
2024-02-27Restore change history to the extent possible when restoring undo history.Neil1-12/+129
2024-02-10Add missing header for test.Neil Hodgson1-0/+1
2024-02-09Avoid overhead of extra start actions that delimited user operations. Now reliesNeil1-1/+1
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-0/+50
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-01Store undo text in ScrapStack, a single allocation instead of one allocation perNeil1-22/+41
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-21/+21
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/+1
tests but hidden from most of Scintilla. Access through std::unique_ptr.
2024-01-30Avoid warnings in unit tests with const, nullptr, [[nodiscard]], initialisation,Neil1-1/+1
and unnamed namespace.
2024-01-29Add tests for an undo history with only container actions and 2 levels of undoNeil1-3/+39
group nesting.
2024-01-29Add tests for container undo actions, checking that they coalesce when required.Neil1-1/+68
2023-12-30Add tests for undo history, coalescing, grouping, tentative.Neil1-0/+216
2023-11-07Feature [feature-requests:#1501] Use string_view and constexpr in unit tests.Zufu Liu1-67/+70
2023-10-26Implement LineEnd method in CellBuffer as it is a basic function and only usesNeil1-0/+52
CellBuffer fields. Declare LineEnd noexcept as it should never throw and that allows methods calling it to also be noexcept. Call LineEndPosition to simplify Editor::LineSelectionRange.
2023-10-04Significantly reduce memory used for deleting contiguous ranges backwards.Neil1-3/+3
Compresses sequences of same item in vectors by adding a count field. Fixes Notepad++ issue 13442. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13442
2023-10-04Preparatory changes for fix in next commit. Does not change Scintilla behaviour.Neil1-0/+49
Add tests for contiguous deletions in forward and backward directions. Use symbolic edition values. Rename InsertionSpan to ChangeSpan and insertions to changes as holds both insertions and deletions. Add ChangeStack::Check. Add comments.
2023-02-05Update suppressions for Cppcheck 2.10. Remove unused variable.rel-5-3-3Neil1-1/+0
2022-07-31Added change history which can display document changes (modified, saved, ...)Neil1-6/+587
in the margin or in the text.
2021-08-24Remove line end white space.Neil1-2/+2
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-136/+138
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-09Add @file <filename> comments to follow convention.Neil1-1/+3
Fix incorrect filename comments. Normalize Qt code to use #endif /* X */ insetad of #endif // X.
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-2/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2018-07-10Optional indexing of line starts in UTF-8 documents by UTF-32 code points andNeil1-0/+288
UTF-16 code units added.
2018-05-13Include <string_view> in tests in case needed.Neil1-0/+1
2018-04-17Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes.Neil1-1/+1
This option is provisional and experimental.
2018-03-21Include header needed for ptrdiff_t.Mitchell Foral1-0/+1
2018-03-16Remove line-end white space.Neil1-2/+2
2018-02-02Implement SC_DOCUMENTOPTION_STYLES_NONE.Neil1-1/+1
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-0/+2
interfaces ILexer4 and IDocument.
2017-06-09Avoid signed safety warnings from GCC 7.Neil1-2/+2
2017-04-29Use std::unique_ptr, std::vector, and move construction to simplify UndoHistoryNeil1-0/+1
and make it easier to modify. Remove out of date warning suppression.
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2016-10-08Fix minor warnings in unit tests from MSVC 64-bit.Neil1-7/+7
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
2013-11-18Add some tests for CellBuffer.Neil1-0/+140