Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-02-10 | Add missing header for test. | Neil Hodgson | 1 | -0/+1 | |
2024-02-09 | Avoid overhead of extra start actions that delimited user operations. Now relies | Neil | 1 | -1/+1 | |
on mayCoalesce flag to indicate that a user operation is complete when false. | |||||
2024-02-02 | Implement ScaledVector to store undo positions and lengths using less memory in | Neil | 1 | -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-01 | Store undo text in ScrapStack, a single allocation instead of one allocation per | Neil | 1 | -22/+41 | |
step. This saves about 50% for a long sequence of single byte actions. | |||||
2024-02-01 | Add UndoAction class as internal type for undo actions and make Action a struct | Neil | 1 | -21/+21 | |
that is used for reporting undo steps to Document. This will allow further minimization of undo memory use. | |||||
2024-02-01 | Move UndoHistory into its own module that is accessible from CellBuffer and | Neil | 4 | -0/+4 | |
tests but hidden from most of Scintilla. Access through std::unique_ptr. | |||||
2024-02-01 | Protect CATCH_CONFIG_WINDOWS_CRTDBG to only be active on Windows to allow | Neil | 1 | -0/+2 | |
building UnitTester.cxx on macOS. | |||||
2024-01-30 | Avoid warnings in unit tests with const, nullptr, [[nodiscard]], initialisation, | Neil | 10 | -30/+34 | |
and unnamed namespace. | |||||
2024-01-29 | Add tests for an undo history with only container actions and 2 levels of undo | Neil | 1 | -3/+39 | |
group nesting. | |||||
2024-01-29 | Add tests for container undo actions, checking that they coalesce when required. | Neil | 1 | -1/+68 | |
2024-01-02 | Fix warnings in test case code mostly by adding const. | Neil | 7 | -70/+73 | |
2024-01-02 | Add tests for undo of Document. | Neil | 1 | -0/+81 | |
2023-12-30 | Add tests for undo history, coalescing, grouping, tentative. | Neil | 1 | -0/+216 | |
2023-12-21 | Bug [#2405]. Avoid character fragments in regular expression search results. | Zufu Liu | 2 | -0/+41 | |
2023-12-14 | Bug [#2405]. Fix regular expression bug in reverse direction where shortened | Zufu Liu | 1 | -1/+1 | |
match returned. | |||||
2023-12-12 | Slight speed up by allowing unitTest.o to compile in parallel with others. | Zufu Liu | 1 | -1/+1 | |
2023-12-12 | Bug [#2405]. Fix regular expression assertion (^, $, \b. \B) failures when using | Zufu Liu | 1 | -5/+32 | |
SCFIND_CXX11REGEX. | |||||
2023-12-11 | Add std::regex tests for assertions in context which are common. | Neil | 1 | -0/+42 | |
Two of these tests are currently returning incorrect results. | |||||
2023-12-09 | Allow parallel building with makefile. | Neil | 1 | -19/+25 | |
2023-12-07 | Simplify substitution checks. | Zufu Liu | 1 | -39/+34 | |
Set global locale for llvm-mingw libc++. Add test for \w+ which currently fails for RESearch. | |||||
2023-12-06 | Shorten tests with some helpers. | Neil | 1 | -106/+83 | |
2023-12-02 | Bug [#2157]. Fix regular expression search for word begin \< and word end \>. | Zufu Liu | 1 | -0/+130 | |
2023-11-21 | Bug [#2413]. Fix regular expression search failure. | Zufu Liu | 1 | -0/+11 | |
2023-11-07 | Feature [feature-requests:#1501] Use string_view and constexpr in unit tests. | Zufu Liu | 3 | -119/+122 | |
2023-11-02 | Feature [feature-requests:#1500] Remove match text retrieval from MatchOnLines | Zufu Liu | 1 | -7/+10 | |
as it is redone in SubstituteByPosition. Replace RESearch::pat and RESearch::GrabMatches with retrieving matches as needed in SubstituteByPosition. | |||||
2023-10-26 | Add LineStartPosition to replace common idiom LineStart(LineFromPosition(x)) as | Neil | 1 | -0/+1 | |
this shortens code. LineStartPosition is also noexcept which allows callers to be noexcept. | |||||
2023-10-26 | Implement LineEnd method in CellBuffer as it is a basic function and only uses | Neil | 1 | -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-19 | Fix regex test failures on Unix by setting global locale. | Zufu Liu | 1 | -0/+12 | |
2023-10-18 | Remove unused values that caused warnings. | Neil Hodgson | 1 | -3/+0 | |
2023-10-18 | Fix missing include which caused compilation failure on macOS. | Neil Hodgson | 1 | -0/+1 | |
2023-10-15 | Bug [#2405]. Fix incorrect substitution when searching for a regular expression | Zufu Liu | 1 | -0/+46 | |
backwards. | |||||
2023-10-15 | Use std::array for regex match positions as it will simplify copying. | Neil | 1 | -0/+1 | |
This change set does not change behaviour. | |||||
2023-10-04 | Significantly reduce memory used for deleting contiguous ranges backwards. | Neil | 1 | -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-04 | Preparatory changes for fix in next commit. Does not change Scintilla behaviour. | Neil | 1 | -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-22 | Remove _CRT_SECURE_NO_DEPRECATE. | Neil | 4 | -7/+6 | |
Replace [v]sprintf with bounds checked [v]snprintf. | |||||
2023-02-05 | Update suppressions for Cppcheck 2.10. Remove unused variable.rel-5-3-3 | Neil | 1 | -1/+0 | |
2022-09-02 | Add PixelAlignCeil and call PixelAlign* to avoid repeated code. | Markus Nißl | 1 | -0/+13 | |
2022-07-31 | Added change history which can display document changes (modified, saved, ...) | Neil | 5 | -13/+612 | |
in the margin or in the text. | |||||
2022-07-29 | Apply rule-of-zero to delete standard methods where possible as handled by | Neil | 5 | -0/+186 | |
contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations. | |||||
2022-07-29 | Use SplitVector directly instead of throughSplitVectorWithRangeAdd which was | Neil | 1 | -23/+0 | |
only ever used by Partitioning. | |||||
2022-07-29 | Add growSize argument to SplitVector constructor with default value so can be | Neil | 1 | -4/+2 | |
used more simply. Add default value to growSize argument of Partitioning to enable default construction. | |||||
2022-07-28 | Call Check to ensure in consistent state. | Neil | 1 | -0/+9 | |
2022-07-24 | Bug [#2340] Simplify expand all folds. Speed up expand line a little. | Zufu Liu | 1 | -0/+22 | |
2022-07-20 | Implement PositionNext to iterate. Simpler than IndexAfter for client code which | Neil | 1 | -0/+14 | |
is not interested in SparseVector indices. | |||||
2022-07-20 | Add DeleteAll method as quick way to clear everything. | Neil | 1 | -0/+3 | |
Improves similarity to RunStyles. | |||||
2022-07-20 | Check IndexAfter at end. | Neil | 1 | -0/+1 | |
2022-07-20 | Fix setting end element empty. | Neil | 1 | -0/+4 | |
2022-07-17 | Feature [feature-requests:#1441] Line state optimized to avoid excess ↵ | Zufu Liu | 1 | -6/+6 | |
allocations by always allocating for every line. | |||||
2022-07-17 | Feature [feature-requests:#1442] Added PerLine tests for LineMarkers and | Zufu Liu | 1 | -0/+70 | |
LineAnnotation. Line deletion behaviour could be defined differently but current behaviour was most expected in most circumstances. | |||||
2022-07-04 | Feature [feature-requests:#1442] Faster build with multiprocessing option. | Zufu Liu | 1 | -1/+1 | |