aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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.
2023-01-15Consolidate calculation of horizontal offset and use in more regular way.Neil1-15/+17
2023-01-15Simplify DrawIndentGuide and move decision to offset out of loop.Neil2-9/+10
2023-01-15As text base line is constant, move calculation out of loop.Neil1-11/+13
2023-01-19Feature [feature-requests:#1444] Move GetFoldParent from Document to LineLevelsNeil3-12/+24
as better modularity. Add LineLevels::GetFoldLevel for better type safety. Simplify bounds checks in GetLevel and GetFoldLevel.
2023-01-17Fix SCI_VERTICALCENTRECARET to update the vertical scroll position.Mitchell Foral1-0/+1
2023-01-13Declarations on separate lines. Ensure variable initialization.Neil1-7/+10
2023-01-12Shorten code with std::swap.Neil1-3/+1
2023-01-12Remove erroneous and unnecessary casts for FindTextFull.Neil1-4/+4
2023-01-12Feature [feature-requests:#1474] Simplify code.Zufu Liu1-3/+4
2023-01-12Feature [feature-requests:#1474] Simplify with InsertString(string_view).Zufu Liu2-16/+12
2023-01-12Feature [feature-requests:#1474] Move EOL string function to Document and returnZufu Liu4-41/+30
string_view.
2023-01-12Bug [#2372]. Optimize previous commit.Zufu Liu1-2/+2
2023-01-10Bug [#2372]. Fix SCI_LINESJOIN bug where carriage returns were incorrectlyZufu Liu1-12/+10
retained.
2023-01-09Hoist common calculation into function.Neil1-3/+11
Use logical and to stop conversion warning.
2023-01-09Use unsigned literal and temporary to stop conversion warnings for each ↵Neil1-4/+6
includer.
2023-01-09Move methods from header to implementation to avoid conversion warnings forNeil2-2/+10
each includer.
2022-12-23Bug [#2360]. Switch back from dynamic_cast to static_cast for per-line dataMat Berchtold1-6/+6
structures. This undoes change set [eca055].
2022-12-21Bug [#2340]. Avoid repeated call in GetFoldParent for around 10% performanceZufu Liu2-16/+10
gain with Visual C++ 64-bit release mode on 300,000 line file. Remove duplicated code and simplify. GetFoldLevel and thus GetFoldParent can't throw so mark as noexcept.
2022-12-12Reorder arguments to drawing functions to be consistent.Neil3-359/+373
Make methods private or make into functions where possible to hide more implementation. Reorder methods and functions so related code closer and header and implementation match order. Use unnamed namespace instead of static.