aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
AgeCommit message (Collapse)AuthorFilesLines
2026-02-25Fix crash on Linux when window too narrow so rcLine is empty. Clamp(rcLineNeil1-0/+3
calls std::clamp on negative range producing undefined behaviour.
2026-02-18When a line end is not selected, change the colour of the rectangle thatNeil1-7/+2
indicates the line end is selected to white space background instead of previous character's background except for EOL filled style.
2026-02-18Hoist calculation of virtual space on a line into a method and simplify callers.Neil1-16/+8
2026-02-18Simplify code and harmonize types when drawing line end blobs in DrawEOL.Neil1-12/+12
2026-02-13Simplify conversion of line end bytes to representation for visible line ends.Neil1-8/+7
2026-02-12Simplify drawing of eol-is-selected rectangle.Neil1-17/+16
2026-02-12Use const and simplify expressions in DrawEOL.Neil1-14/+9
2026-02-08Simplify FillLineRemainder and calling FillLineRemainder.Neil1-23/+20
2026-02-07Use std::array for text measurement cases where it only adds a little code.Neil1-4/+5
2026-02-07Warning avoidance and code tidying.Neil1-15/+23
2026-02-07Avoid some warnings to make more interesting issues visible.Neil1-8/+9
2026-02-07Rename some xStart to xOrigin as xStart was used for different purposes.Neil1-20/+20
Now, xOrigin is the origin of drawing content inside the text pane and xStart is the origin after taking indentation (ll->wrapIndent) of wrapped lines into account on subline 1 and later.
2026-01-31Use min and max instead of conditional code.Neil1-22/+11
2026-01-31Fix some warnings from magic numbers and else after return.Neil1-7/+6
2026-01-17Hoist calculation of last style of line into function and simplify logic.Neil1-8/+9
2026-01-14Hoist EOL annotation padding calculations into functions.Neil1-39/+45
2026-01-14Encapsulate updating maximum width for scroll bar adjustment.Neil1-12/+10
2025-10-13Fix Cocoa bidirectional mode crash when scrolled before start of document.Neil Hodgson1-1/+1
2025-05-29Recreate all pixmaps if any null as this may better handle cases where someNeil1-1/+1
allocations succeed and others fail.
2025-04-03Turn on type conversion warnings for GCC and fix them.Neil1-11/+13
2025-01-07Feature [feature-requests:#1539]. Avoid calling UpdateBidiData for each subline.Zufu Liu1-15/+13
Remove vector of draw phases.
2024-05-16Feature [feature-requests:#1516]. Access SpecialRepresentations through aZufu Liu1-6/+6
unique_ptr. Reduces executable size.
2024-03-23Feature [feature-requests:#1512]. Reduce calls to vsDraw.ElementColour.Zufu Liu1-10/+12
2024-03-15Bug [#2417]. Add elements for inactive additional selectionsNeil Hodgson1-3/+10
SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT and SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK.
2024-03-12Replace magic number 32 with defined MarkerMax (31), adjusting condition.Neil1-3/+3
2023-11-24Feature [feature-requests:#1502] Simplify FlagSet expressions.Zufu Liu1-8/+2
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.Neil1-5/+5
Makes it easier to understand and reduces warnings.
2023-03-02Add multithreaded wrap to significantly improve performance of wrapping largeNeil1-4/+5
files.
2023-02-12Feature [feature-requests:#1476] Move default representation code intoNeil1-21/+0
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 Liu1-1/+1
2023-01-25Hoist line wrapping code into LineLayout::WrapLine as it has few dependencies.Neil1-52/+1
2023-01-23Allow UTF-8 entries to coexist in the position cache alongside the documentNeil1-38/+20
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.Neil1-57/+43
2023-01-15Replace XYACCUMULATOR with XYPOSITION as will not return to single-precisionNeil1-19/+19
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.Neil1-8/+9
2023-01-15As text base line is constant, move calculation out of loop.Neil1-11/+13
2022-12-12Reorder arguments to drawing functions to be consistent.Neil1-339/+356
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.
2022-12-09More safety for potentially empty unwraps with ElementColourForced returning aNeil1-8/+8
ColourRGBA which is opaque black if the element not found.
2022-12-09Ensure unwraps of std::optional<ColourRGBA> can be checked by Code Analysis.Neil1-17/+15
This prevents warnings about dangerous potential unwraps. The cases where this was detected were protected by earlier checks but the analyser couldn't see that. Its also easier for maintainers to see safe and unsafe unwraps with the changes.
2022-12-09Shorten code with ColourOptional alias for std::optional<ColourRGBA>.Neil1-15/+15
2022-10-19Draw background colour for EOL annotations with standard and boxed visuals.Neil1-15/+25
2022-10-19Use switch for EOL annotation shape drawing. Use const and PixelAlign forNeil1-7/+10
rectangle. These changes should not affect behaviour, they are preparing for next change set that will.
2022-10-09Bug [#2358]. Suppress change history background line shading when printing.Neil1-0/+8
2022-10-04Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION toFerdinand Oeinck1-0/+24
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-25Enlarge point and point top indicators and scale to be larger with larger text.Neil1-1/+2
2022-09-25Draw lines more consistently in SC_PHASES_TWO and SC_PHASES_ONE modes byNeil1-0/+9
clipping drawing to just the line rectangle.
2022-09-12Bug [#2349] When more screen lines in ContractionState than LineLayout for aNeil1-0/+5
line then draw extra lines in purple bugColour to make the problem obvious.