aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
AgeCommit message (Collapse)AuthorFilesLines
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
2022-12-09More safety for potentially empty unwraps with ElementColourForced returning aNeil1-8/+5
ColourRGBA which is opaque black if the element not found.
2022-12-09Feature [feature-requests:#1458] Replace complex CopySelectionRange call withZufu Liu1-3/+2
simpler RangeText. This also preserves any NUL characters.
2022-12-01Change release compilation optimization option to favour speed over space.Mitchell Foral1-1/+1
-O2 for MSVC and -O3 for gcc and clang. Change code in Editor.cxx to avoid a warning that occurs with gcc -O3.
2022-11-22Add SCI_REPLACETARGETMINIMAL to change text without causing unchanged prefix andNeil1-10/+26
suffix to be marked as modified in change history.
2022-10-19Fix noexcept warnings from recent changes.Neil1-2/+2
2022-10-19Hoist shared code from GetTextRange and GetTextRangeFull.Neil1-29/+20
2022-10-19Feature [feature-requests:#1455] Implement GetStyledTextFull as a 64-bit safeNeil1-12/+21
version of GetStyledText.
2022-10-04Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION toFerdinand Oeinck1-0/+17
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-30Bug [#2357]. Make SCI_LINESCROLL more accurate when width of space not integer.Zufu Liu1-1/+1
2022-09-12Remove NotifyLexerChanged notification from DocWatcher.Neil1-3/+0
This is a private interface but could be used by independent platform layers and was exposed by ScintillaDocument in the Qt implementation of ScintillaEdit.
2022-08-13Move ModifierFlags to ScintillaTypes.h as it is globally useful and not tiedNeil1-9/+0
to Editor.
2022-08-13Avoid access to window IDs (which are platform-dependent) in code that doesn'tNeil1-7/+11
need them.