aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
AgeCommit message (Collapse)AuthorFilesLines
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.
2022-08-15Fix bug where deletion at line end indicated with point disappeared when textNeil1-7/+6
inserted on line. Ensure not using old data by clearing all positions - this was hiding problems because deleted positions were still set.
2022-08-13Reduce warnings with noexcept, fewer casts, and other minor changes.Neil1-4/+8
2022-08-13Move append of new line start into PositionCache as AddLineStart.Neil1-2/+1
2022-07-31Added change history which can display document changes (modified, saved, ...)Neil1-0/+39
in the margin or in the text.
2022-07-31Move main access to active marker bit set to model. This will allow merging inNeil1-6/+6
change history markers and simplifies calls.
2022-07-28Simplify and shorten indicator drawing.Neil1-28/+19
Loop for brace indicators instead of handling 0 and 1 explicitly.
2022-07-22Bug [#2335] Fix incorrect display of selection when printing in some modes.Neil1-6/+1
2022-07-22Move EditView::hideSelection to (inverted) SelectionAppearance::visible so thatNeil1-11/+10
it can differ between screen and print. Add GetSelectionHidden to allow testing of HideSelection.
2022-06-17Avoid cast.Neil1-2/+2
2022-06-17Fix crash printing on Win32 in bidirectional mode with a non-empty selection.Neil1-6/+8
2022-06-17Change bug colour slightly to be more unique and make it easier to detect whenNeil1-1/+1
debugging.
2022-06-17Bug [#2335] Fix bad background colour for additional, secondary, and inactiveNeil1-2/+6
selections when printing.
2022-06-10Bug [#2334] Fix hiding selection when selection layer is SC_LAYER_UNDER_TEXT.John Ehresman1-1/+3
2022-05-17Fix pink selection background when printing by making it completely transparent.Neil1-0/+2
2022-05-17Duplicate APIs to support 64-bit document positions on Win32:Neil1-14/+14
SCI_GETTEXTRANGEFULL, SCI_FINDTEXTFULL, and SCI_FORMATRANGEFULL.
2022-03-10Bug [#2320] Fix position of end-of-line annotation when fold display text isMichael Berlenz1-1/+3
visible.
2022-03-05Feature [feature-requests:#1432] Simplify setting surface modes withZufu Liu1-1/+1
EditModel::CurrentSurfaceMode.
2022-03-04Feature [feature-requests:#1432] Cosmetic - comment position and trailing space.Zufu Liu1-1/+1
2022-02-28Fix null dereference warning from Coverity 2021.12.Neil1-1/+1
2022-02-02Feature [feature-requests:#1427] Add multithreaded layout which improvesNeil1-42/+124
performance significantly for very wide lines.
2022-01-22Feature [feature-requests:#1422] Minor improvements to line layout and wrapping.Zufu Liu1-3/+2
May avoid some small costs and be clearer.
2022-01-20Hide details of PositionCache.Neil1-5/+6
Move class declarations of PositionCache and PositionCacheEntry into cxx file and only define IPositionCache interface and CreatePositionCache factory function in header.
2021-10-24Avoid extra breaks introduced by revision 8993.Zufu Liu1-4/+6
2021-10-22Add CARETSTYLE_CURSES to draw more than 1 caret on curses terminal.Mitchell Foral1-5/+25
2021-10-22Feature [feature-requests:#1417] Change line wrapping to seek to line lengthZufu Liu1-26/+35
then backtrack to good break.