aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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
2023-10-04Significantly reduce memory used for deleting contiguous ranges backwards.Neil2-43/+115
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.Neil2-16/+34
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-10-03Update character categories for Unicode 15.0.0.Neil1-22/+61
2023-07-01Simplify sel.Range(sel.Main()) to sel.RangeMain().Neil1-3/+3
2023-06-28Add const where viable.Neil2-2/+2
2023-06-25Strip line end white-space.Neil2-2/+2
2023-06-04Feature [feature-requests:#1486] Redraw calltip after showing.Neil1-0/+1
2023-04-13Use & instead of cast to avoid warning in header.Neil1-3/+4
Use named constant for mask that chooses RGB part.
2023-04-11Follow rule-of-zero to omit standard methods.Neil2-10/+1
2023-04-11Feature [feature-requests:#1485] Follow rule-of-zero to omit standard methods.Neil1-7/+1
2023-04-07Use std::abs as adapts to argument type so avoids warning. The value is alwaysNeil Hodgson1-1/+1
small enough to not overflow int.
2023-03-27Include <mutex> as uses mutex.Neil1-0/+1
2023-03-27Declare noexcept as called from noexcept.Neil1-1/+1
2023-03-27Declare const where possible.Neil5-13/+13
2023-03-11Feature [feature-requests:#1482] Merge case converters into an array.Zufu Liu1-26/+12
Small reduction in executable size.
2023-03-10Feature [feature-requests:#1481] Fix lineTop to assign document line instead ofZufu Liu1-1/+1
screen line as that is expected.
2023-03-02Add multithreaded wrap to significantly improve performance of wrapping largeNeil8-15/+176
files.
2023-03-02Cache client size when view moved or sized. That allows access to it fromNeil Hodgson2-2/+8
secondary threads which otherwise shows warnings. Earlier approach of caching client rectangle failed to handle scrolling.
2023-02-17Remove PropGetExpanded and treat GetPropertyExpanded as GetProperty since it noNeil1-16/+1
longer expands property references.
2023-02-17Use maximum 4 digits for next fold level display when lexer incorrectly setsNeil1-3/+3
fold level to -1. Previously 8 digits were displayed due to sign extension. Limit formatted length although no possibility of exceeding 100 characters.
2023-02-14Fix a potential crash with autocompletion list fill-ups where a SCN_CHARADDEDMitchell Foral1-1/+1
handler retriggered an autocompletion list, but with no items that match the typed character.
2023-02-13Where a multi-byte character contains multiple styles, display each byte as aNeil1-0/+16
representation. This makes it easier to see and fix lexers that change styles mid-character, commonly because they use fixed size buffers.
2023-02-12Feature [feature-requests:#1476] Move default representation code intoNeil5-66/+74
SpecialRepresentations class.
2023-02-12Fix clipping of line end wrap symbol for SC_WRAPVISUALFLAGLOC_END_BY_TEXT.Neil1-2/+3
2023-02-12Bug [#2378]. Fix overlapping of text with line end wrap marker.Zufu Liu3-5/+5
2023-01-25When an autocompletion list is shown in response to SCN_CHARADDED, do notMitchell Foral1-2/+3
process character as fill-up or stop. This avoids closing immediately when a character may both trigger and finish autocompletion.
2023-01-25Use LineLayout::LineNumber inside LineLayoutCache so it doesn't have to beNeil2-4/+3
declared to be a friend.
2023-01-25Hoist line wrapping code into LineLayout::WrapLine as it has few dependencies.Neil3-52/+60
2023-01-23Allow UTF-8 entries to coexist in the position cache alongside the documentNeil3-56/+44
encoding. Elements like character representations may be in UTF-8 while the document is in a different encoding. UTF-8 will be used for additional features and may later be the only encoding for the position cache. This change does not change performance or the proportion of strings cached - its purpose is to clean up callers and prepare for greater UTF-8 use.
2023-01-16Use intervals for drawing.Neil5-57/+70
2023-01-15Replace XYACCUMULATOR with XYPOSITION as will not return to single-precisionNeil2-22/+22
float calculations. Remove unnecessary casts.