aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2024-01-27Use noexcept where reasonable.Neil2-32/+32
2024-01-27Feature [feature-requests:#1458] Reduce memory used for undo actions.Zufu Liu2-14/+9
2024-01-02Simplify choosing caret position when undoing contiguous deletions.Neil1-22/+6
Stop considering container actions as they are supposed to be transparent. The mayCoalesce flag is private to the undo code and may be removed in the future. Use Range type to unify state implementing coalescing.
2023-12-30Since ranges is never empty, replace test with assertion.Neil1-9/+6
2023-12-30Avoid unnecessary use of push_back and emplace_back by preserving ranges[0].Neil2-18/+21
This allows more methods to be noexcept.
2023-12-27Avoid warnings by initializing, using const, and moving assignment out of if.Neil1-6/+6
2023-12-23Add break to avoid warning from Visual Studio code analysis.rel-5-4-1Neil1-1/+1
2023-12-21Bug [#2405]. Avoid character fragments in regular expression search results.Zufu Liu3-6/+20
2023-12-20Add IDocumentEditable interface for efficient interaction with document objects.Neil3-9/+23
2023-12-15Bug [#2289]. Protect SCI_REPLACETARGET* from application changing target inNeil1-9/+19
notification handlers.
2023-12-14Bug [#2405]. Fix regular expression bug in reverse direction where shortenedZufu Liu1-20/+17
match returned.
2023-12-14Remove noexcept from MatchFlags since IsWordEndAt is not noexcept.Neil1-1/+1
2023-12-12Bug [#2405]. Fix regular expression assertion (^, $, \b. \B) failures when usingZufu Liu1-28/+33
SCFIND_CXX11REGEX.
2023-12-08Throw error when allocating more than 2G without SC_DOCUMENTOPTION_TEXT_LARGE.Neil1-0/+4
2023-12-02Bug [#2157]. Fix regular expression search for word begin \< and word end \>.Zufu Liu3-12/+32
2023-12-01Remove gcc Wconversion warnings from header.Neil1-2/+3
2023-11-25Feature [feature-requests:#1503] Use std::array for bittab and simplify use.Zufu Liu2-20/+17
2023-11-24Feature [feature-requests:#1502] Simplify FlagSet expressions.Zufu Liu3-17/+10
2023-11-06Ctrl-click on a selection deselects it in multiple selection mode.Neil1-2/+16
2023-11-06Simplify variable flow in ButtonDownWithModifiers and enforce with const to makeNeil1-12/+11
adding features easier. Does not change behaviour.
2023-11-06Mouse capture and automatic scrolling are always started and stopped together soNeil2-12/+16
encapsulate that in ChangeMouseCapture method. Does not change behaviour.
2023-11-06Extract DropSelection into a method so it can be reused.Neil2-3/+8
2023-11-05Add SCI_SELECTIONFROMPOINT for modifying multiple selections.Neil4-0/+34
2023-11-05Add SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.Neil2-27/+44
2023-11-05Add SCI_SETMOVEEXTENDSSELECTION to simplify selection mode manipulation.Neil1-0/+3
2023-11-23Feature [feature-requests:#1503] Reduce variable scope.Zufu Liu2-63/+48
2023-11-21Type harmonization.Zufu Liu1-1/+1
2023-11-21Feature [feature-requests:#1502] Improve speed of LineLayoutCache::InvalidateZufu Liu2-9/+8
for replacing text.
2023-11-21Bug [#2413]. Fix regular expression search failure.Zufu Liu2-11/+15
2023-11-19Avoid warnings for static_cast and potential overflow.Neil1-1/+2
2023-11-19Avoid warning for uninitialized variable.Neil1-1/+1
2023-11-19Add const where possible.Neil1-1/+1
2023-11-19Fix type conversion warning.Neil1-1/+1
2023-11-19Remove extra ';' which produced warning on old GCC.Neil1-1/+1
2023-11-07Feature [feature-requests:#1501] Use const and simpler indexing.Zufu Liu2-6/+6
2023-11-07Feature [feature-requests:#1501] Another use of black constant.Zufu Liu1-1/+1
2023-11-07Feature [feature-requests:#1501] More use of LineStartPosition, LineEndPosition.Zufu Liu3-7/+3
2023-11-02Feature [feature-requests:#1500] Remove match text retrieval from MatchOnLinesZufu Liu3-31/+11
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-1/+4
SCI_MOVESELECTEDLINESDOWN.
2023-10-27Extract key code from HorizontalMove to shorten and simplify it.Neil3-146/+134
New methods are SelectionMove, PositionMove, HomeWrapPosition and SelectionPosition::AddVirtualSpace. This refactoring commit does not change behaviour.
2023-10-26Add LineStartPosition to replace common idiom LineStart(LineFromPosition(x)) asNeil3-23/+21
this shortens code. LineStartPosition is also noexcept which allows callers to be noexcept.
2023-10-26Implement LineEnd method in CellBuffer as it is a basic function and only usesNeil5-37/+40
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-15Bug [#2405]. Fix incorrect substitution when searching for a regular expressionZufu Liu1-0/+8
backwards.
2023-10-15Use std::array for regex match positions as it will simplify copying.Neil3-6/+9
This change set does not change behaviour.
2023-10-12Move platform colour definitions outside constructor and improve names.Neil Hodgson1-9/+13
2023-10-10Share definition of colour used for IME indicators on most platforms.Neil1-0/+4
2023-10-10Rename bugColour to colourBug to follow convention.Neil1-5/+5
2023-10-10Use global constants for opaque black and white and local constants for greys.Neil9-23/+32
Makes it easier to understand and reduces warnings.
2023-10-10Use maximumByte constant and share byte to float conversion calculation.Neil1-14/+18
2023-10-06Fix COPY_INSTEAD_OF_MOVE performance warnings from Coverity.Neil2-2/+2