aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-09-02Hoist some common code into methods.Neil1-37/+25
RangeContainsProtected gains an overload that takes a SelectionRange as this is common use and simplifies callers. ClearSelectionRange is common code used to clear selected text and update a SelectionRange before inserting text.
2024-08-15Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.Neil1-0/+7
2024-08-09Simplify code that sets an empty selection at a position.Neil1-4/+2
2024-07-31Feature [feature-requests:#1524]. Add SCI_LINEINDENT and SCI_LINEDEDENT.Martijn Laan1-5/+11
These force the multiline behaviour of SCI_TAB and SCI_BACKTAB.
2024-07-28Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and itsNeil1-0/+3
nesting depth.
2024-07-27Feature [feature-requests:#1530]. SCI_SETCOPYSEPARATOR sets string to separateNeil1-4/+13
parts of multiple selection when copied.
2024-07-15Simplify line-end insertions and conversions.Neil1-9/+3
2024-07-10Bug [#2443]. Fix flickering cursor after some mouse action sequences.Neil1-1/+6
2024-06-20Feature [feature-requests:#1518]. Cherry pick SCI_CUTALLOWLINE from isscint.Martijn Laan1-17/+50
2024-06-11Feature [feature-requests:#1517]. Increase maximum zoom set interactively to +60Neil1-1/+1
points.
2024-06-10Simplify SetZoom by calling SetAppearance to do the check if changed sequence.Neil1-8/+4
2024-05-16Feature [feature-requests:#1516]. Access SpecialRepresentations through aZufu Liu1-8/+8
unique_ptr. Reduces executable size.
2024-03-14Add ColourRGBA::Grey constructing method to simplify use of grey-scale colours.Neil1-1/+2
Use symbolic constants for colour components, fixing 'magic number' warnings.
2024-03-08Reformat with astyle.Neil1-1/+1
2024-02-16Implement detach point access with SCI_SETUNDODETACH and SCI_GETUNDODETACH.Neil1-4/+11
Write more documentation for undo history.
2024-02-15Avoid reinterpret_cast and add const.Neil1-4/+13
2024-02-09Implement API to read and write undo history from applications.Neil1-0/+43
2023-12-23Add break to avoid warning from Visual Studio code analysis.rel-5-4-1Neil1-1/+1
2023-12-20Add IDocumentEditable interface for efficient interaction with document objects.Neil1-5/+9
2023-12-15Bug [#2289]. Protect SCI_REPLACETARGET* from application changing target inNeil1-9/+19
notification handlers.
2023-11-24Feature [feature-requests:#1502] Simplify FlagSet expressions.Zufu Liu1-7/+7
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 soNeil1-12/+15
encapsulate that in ChangeMouseCapture method. Does not change behaviour.
2023-11-06Extract DropSelection into a method so it can be reused.Neil1-3/+7
2023-11-05Add SCI_SELECTIONFROMPOINT for modifying multiple selections.Neil1-0/+25
2023-11-05Add SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.Neil1-27/+43
2023-11-05Add SCI_SETMOVEEXTENDSSELECTION to simplify selection mode manipulation.Neil1-0/+3
2023-11-07Feature [feature-requests:#1501] More use of LineStartPosition, LineEndPosition.Zufu Liu1-1/+1
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.Neil1-146/+128
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)) asNeil1-17/+10
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 usesNeil1-4/+2
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-07-01Simplify sel.Range(sel.Main()) to sel.RangeMain().Neil1-3/+3
2023-03-27Include <mutex> as uses mutex.Neil1-0/+1
2023-03-27Declare const where possible.Neil1-1/+1
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 largeNeil1-10/+128
files.
2023-03-02Cache client size when view moved or sized. That allows access to it fromNeil Hodgson1-2/+7
secondary threads which otherwise shows warnings. Earlier approach of caching client rectangle failed to handle scrolling.
2023-02-12Feature [feature-requests:#1476] Move default representation code intoNeil1-44/+1
SpecialRepresentations class.
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 with InsertString(string_view).Zufu Liu1-13/+10
2023-01-12Feature [feature-requests:#1474] Move EOL string function to Document and returnZufu Liu1-39/+19
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.
2022-12-12Reorder arguments to drawing functions to be consistent.Neil1-1/+1
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-09Use const. Replace magic number with constant.Neil1-2/+2