Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2 days | implicitly instantiate RunStyles: support ptrdiff_t if it has the same ↵ | Robin Haberkorn | 1 | -1/+0 | |
storage size as int, but does *not* alias it * This is the case e.g. on NetBSD 10 for ARMv6 where Sci::Position == ptrdiff_t == long int, but obviously for other platforms as well, where it causes "invalid conversion" and "undefined symbol" errors. Scintilla was testing for aliasability by comparing the storage size with sizeof() or PTRDIFF_MAX == INT_MAX at the preprocessor level. This was fundamentally flawed. * In LineVector<T>::InsertLines() we are now using the C++17 construct std::is_convertible_v<From*,To*> instead. * We need RunStyles<ptrdiff_t> as well on the affected platforms. AFAIK this is impossible to test for in a constant expression that can be used with the preprocessor. A workaround has been added previously for Haiku: https://groups.google.com/g/scintilla-interest/c/xPXquJUIXo8/m/BLXBpTTgBwAJ The workaround is not very robust, as probably nobody guarantees that ptrdiff_t never aliases on Haiku. If it does, you will suddenly get errors about duplicate template instantiations. Quite possibly, the explicit instantiations of RunStyles were wrong on certain 32-bit Linux variants as well. * We could have tried to explicitly instantiate RunStyles for all scalar types that could possibly be behind ptrdiff_t. Unfortunately, it would result in "possible loss of data" warnings on MSVC. Instead, we now implicitly instantiate RunStyles. | |||||
2025-07-03 | Feature [feature-requests:#1563]. Move main range in selection serialized form.master | Zufu Liu | 1 | -12/+16 | |
Avoid processing characters multiple times by relying on from_chars munching digit characters instead of searching for delimiters. | |||||
2025-05-12 | Add SCI_AUTOC{G,S}ETIMAGESCALE and implement for Qt and GTK. | orbitalquark | 1 | -0/+5 | |
2025-03-27 | Add performance test for case-insensitive DBCS searching. | Neil | 1 | -0/+22 | |
2025-03-08 | Define constants for UTF-8 and UTF-16 implementation for clarity. | Neil | 1 | -0/+33 | |
Add tests to check that inverted conversions yield the original value. | |||||
2025-03-03 | Feature [feature-requests:#1417]. Improve UTF-8 segmentation for some control | Neil | 1 | -0/+131 | |
characters and invalid bytes. Add more test cases. | |||||
2025-02-23 | Silence some warnings in test code.rel-5-5-5 | Neil | 3 | -17/+24 | |
2025-02-23 | Feature [feature-requests:#1540]. Remove unused variable. | Neil | 1 | -17/+0 | |
2025-02-05 | Simplify SelectionRange::Intersect and add SelectionRange constructor from | Neil | 1 | -0/+32 | |
positions without virtual space. Add unit tests. | |||||
2025-02-04 | Use Lexilla.ruleset from sibling lexilla directory instead of path on my | Neil | 1 | -1/+2 | |
personal machine. | |||||
2025-02-04 | Fix segmentation of long lexemes to avoid breaking before modifiers like accents | Neil | 1 | -0/+56 | |
that must be drawn with their base letters. This is only a subset of implementing grapheme cluster boundaries but it improves behaviour with some Asian scripts like Thai and Javanese. Javanese is mostly written with (ASCII) Roman characters so issues will be rare but Thai uses Thai script. Also slightly improves placement of combining accents in European texts. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14822 https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16115 | |||||
2025-02-04 | Add overload of UnicodeFromUTF8 that takes a string_view. | Neil | 1 | -0/+5 | |
2025-02-01 | Serialize selection type and ranges with SCI_GETSELECTIONSERIALIZED and | Neil | 1 | -0/+33 | |
SCI_SETSELECTIONSERIALIZED. | |||||
2025-02-01 | Implement serialization of Selection to and from strings. | Neil | 1 | -0/+112 | |
Requires std::from_chars to be available. | |||||
2025-01-31 | Update comment about modules tested. | Neil | 1 | -17/+11 | |
2025-01-31 | Add default basic constructor and operator!= to SelectionPosition to ease use. | Neil | 4 | -0/+154 | |
Use default member initializer, constexpr for constructors and equality operators and <, [[nodiscard]] for comparison operators. Add simple unit tests for Selection. Not trying to be exhaustive here, just start the process of adding tests. | |||||
2025-01-22 | Bug [#1224]. Remember selection in undo history. SCI_SETSELECTIONUNDOHISTORY. | Neil | 1 | -0/+1 | |
2024-11-30 | Feature [feature-requests:#1533]. Tests for BraceMatch. | Zufu Liu | 1 | -0/+49 | |
2024-11-26 | Bug [#2458]. Add include of cstdint to provide intptr_t and uintptr_t. | Neil | 4 | -0/+4 | |
2024-07-28 | Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its | Neil | 1 | -0/+19 | |
nesting depth. | |||||
2024-07-27 | Feature [feature-requests:#1530]. SCI_SETCOPYSEPARATOR sets string to separate | Neil | 1 | -3/+16 | |
parts of multiple selection when copied. | |||||
2024-07-15 | Add copy and paste tests for rectangular- and multiple-selection and line-end | Neil | 1 | -0/+47 | |
conversion. | |||||
2024-07-03 | Feature [feature-requests:#1523]. SCI_AUTOCSETSTYLE sets autocompletion font. | Martijn Laan | 1 | -0/+4 | |
2024-06-20 | Feature [feature-requests:#1518]. Cherry pick SCI_CUTALLOWLINE from isscint. | Martijn Laan | 1 | -0/+13 | |
2024-04-04 | Update Catch testing framework from v2.13.7 to v2.13.10. | Neil | 1 | -61/+78 | |
2024-03-09 | Bug [#2432]. Fix redo failure. | Neil | 1 | -0/+26 | |
2024-03-08 | Bug [#2403]. Add SC_AUTOCOMPLETE_SELECT_FIRST_ITEM. | Jiří Techet | 1 | -0/+22 | |
This option always selects the first item in the autocompletion list. | |||||
2024-02-27 | Restore change history to the extent possible when restoring undo history. | Neil | 1 | -12/+129 | |
2024-02-09 | Implement API to read and write undo history from applications. | Neil | 1 | -0/+76 | |
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 | |