aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Bug [#2157]. Fix regular expression search for word begin \< and word end \>.Zufu Liu1-0/+130
2023-11-05Add SCI_SELECTIONFROMPOINT for modifying multiple selections.Neil1-3/+36
2023-11-05Add SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.Neil1-22/+25
2023-11-05Add SCI_SETMOVEEXTENDSSELECTION to simplify selection mode manipulation.Neil1-0/+19
2023-11-21Bug [#2413]. Fix regular expression search failure.Zufu Liu1-0/+11
2023-11-07Feature [feature-requests:#1501] Use string_view and constexpr in unit tests.Zufu Liu3-119/+122
2023-11-05Extract selectionRepresentation so it can be used in other test classes.Neil1-9/+10
2023-11-05Update unittest method names to work with Python 3.12.Neil2-46/+46
2023-11-02Feature [feature-requests:#1500] Remove match text retrieval from MatchOnLinesZufu Liu1-7/+10
as it is redone in SubstituteByPosition. Replace RESearch::pat and RESearch::GrabMatches with retrieving matches as needed in SubstituteByPosition.
2023-10-29Bug [#2078]. Fix rectangular selections with SCI_MOVESELECTEDLINESUP andNeil1-0/+14
SCI_MOVESELECTEDLINESDOWN.
2023-10-26Add LineStartPosition to replace common idiom LineStart(LineFromPosition(x)) asNeil1-0/+1
this shortens code. LineStartPosition is also noexcept which allows callers to be noexcept.
2023-10-26Add test for VCHome method.Neil1-0/+11
2023-10-26Use raw strings and extra escapes to fix "SyntaxWarning: invalid escape ↵Neil1-10/+10
sequence".
2023-10-26Update unittest method names to work with Python 3.12.Neil1-1028/+1028
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-19Fix regex test failures on Unix by setting global locale.Zufu Liu1-0/+12
2023-10-18Remove unused values that caused warnings.Neil Hodgson1-3/+0
2023-10-18Fix missing include which caused compilation failure on macOS.Neil Hodgson1-0/+1
2023-10-15Bug [#2405]. Fix incorrect substitution when searching for a regular expressionZufu Liu1-0/+46
backwards.
2023-10-15Use std::array for regex match positions as it will simplify copying.Neil1-0/+1
This change set does not change behaviour.
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-06-25Strip line end white-space.Neil1-2/+2
2023-03-15Fix some warnings from ruff.Neil5-24/+25
2023-02-22Remove _CRT_SECURE_NO_DEPRECATE.Neil4-7/+6
Replace [v]sprintf with bounds checked [v]snprintf.
2023-02-05Update suppressions for Cppcheck 2.10. Remove unused variable.rel-5-3-3Neil1-1/+0
2023-01-12Feature [feature-requests:#1474] Simplify with InsertString(string_view).Zufu Liu1-0/+11
2023-01-12Feature [feature-requests:#1474] Move EOL string function to Document and returnZufu Liu1-0/+75
string_view.
2023-01-10Bug [#2372]. Fix SCI_LINESJOIN bug where carriage returns were incorrectlyZufu Liu1-0/+43
retained.
2022-12-02Detangle ASCII and multi-byte code for case-insenstive UTF-8 searches.Neil1-5/+24
This avoids some work for the common case of ASCII text, which can reduce time taken for search in text that is ASCII or almost-all ASCII by 30%. Ensures that the bytes variable is always initialized. There are a small gains possible by making other minor changes but they would increase code length and add complexity. Add performance test for UTF-8 search in almost-all ASCII document. Increase size of test cases for more consistent results on faster computers.
2022-11-28Bug [#2363]. Change 'paragraph up' commands SCI_PARAUP and SCI_PARAUPEXTEND toMichael Heath1-0/+40
go to the start position of the paragraph containing the caret. Only if the caret is already at the start of the paragraph will it go to the start of the previous paragraph.
2022-11-22Add SCI_REPLACETARGETMINIMAL to change text without causing unchanged prefix andNeil1-0/+39
suffix to be marked as modified in change history.
2022-10-19Feature [feature-requests:#1455] Implement GetStyledTextFull as a 64-bit safeNeil2-0/+19
version of GetStyledText.
2022-10-04Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION toFerdinand Oeinck1-0/+8
make it easier to edit around invisible text. This also allows representing long lexemes with a single character to provide a summarized view.
2022-09-20Some simple tests for change history.Neil1-0/+26
2022-09-17Exit earlier when Scintilla not found - it was continuing and displaying manyNeil1-11/+11
failures.
2022-09-02Add PixelAlignCeil and call PixelAlign* to avoid repeated code.Markus Nißl1-0/+13
2022-07-31Added change history which can display document changes (modified, saved, ...)Neil5-13/+612
in the margin or in the text.
2022-07-29Apply rule-of-zero to delete standard methods where possible as handled byNeil5-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-29Use SplitVector directly instead of throughSplitVectorWithRangeAdd which wasNeil1-23/+0
only ever used by Partitioning.
2022-07-29Add growSize argument to SplitVector constructor with default value so can beNeil1-4/+2
used more simply. Add default value to growSize argument of Partitioning to enable default construction.
2022-07-28Call Check to ensure in consistent state.Neil1-0/+9
2022-07-24Bug [#2340] Simplify expand all folds. Speed up expand line a little.Zufu Liu1-0/+22
2022-07-22Move EditView::hideSelection to (inverted) SelectionAppearance::visible so thatNeil1-0/+7
it can differ between screen and print. Add GetSelectionHidden to allow testing of HideSelection.
2022-07-20Implement PositionNext to iterate. Simpler than IndexAfter for client code whichNeil1-0/+14
is not interested in SparseVector indices.
2022-07-20Add DeleteAll method as quick way to clear everything.Neil1-0/+3
Improves similarity to RunStyles.
2022-07-20Check IndexAfter at end.Neil1-0/+1
2022-07-20Fix setting end element empty.Neil1-0/+4
2022-07-17Feature [feature-requests:#1441] Line state optimized to avoid excess ↵Zufu Liu1-6/+6
allocations by always allocating for every line.
2022-07-17Feature [feature-requests:#1442] Added PerLine tests for LineMarkers andZufu Liu1-0/+70
LineAnnotation. Line deletion behaviour could be defined differently but current behaviour was most expected in most circumstances.