aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-01-06Backport: Bug [#2068]. Fix some clang-tidy warnings.Zufu Liu1-2/+2
Backport of changeset 7195:ce4394f12c76.
2018-11-29Backport: Notify with SC_UPDATE_SELECTION when user performs a multiple ↵Neil1-0/+1
selection add. Backport of changeset 7181:77e17d7f972b.
2018-10-17Backport: Use nullptr and default brace initialisation for some simple cases.Neil1-1/+1
Backport of changeset 7118:526318f7d6c7.
2018-10-15Backport: Set number of lines wrapped in one go to maintain responsiveness ↵Neil1-2/+12
and efficiency by measuring speed and limiting to around 10 milliseconds. Backport of changeset 7114:efe194662480.
2018-10-15Backport: Extract duration measurement damping and clamping into ↵Neil1-1/+1
ActionDuration class so that it can be reused. Backport of changeset 7113:9b7421470bf8.
2018-10-11Backport: Add SCI_SETCOMMANDEVENTS API to allow turning off command events.Neil1-3/+13
This can reduce the time taken to fold a document by half. Backport of changeset 7110:09c647755bed.
2018-10-09Backport: Improve performance of Editor::RangeText by avoding per-character ↵Neil1-3/+1
checks. Helps applications that call SCI_GETTARGETTEXT. Backport of changeset 7109:29f0ca6d2d1b, but with const_cast to fix compile error.
2018-09-29Backport: Use nullptr when simple.Neil1-6/+6
Backport of changeset 7100:31d188d6cc82.
2018-09-29Backport: Normalize formatting with astyle.Neil1-5/+5
Backport of changeset 7099:4a3900a05537.
2018-09-29Backport: Remove dead code.Neil1-1/+0
Backport changeset 7098:b9de068f7202.
2018-09-29Backport: Bug [#2047]. Avoid processing when SCI_SETZOOM to same value as ↵Zufu Liu1-5/+9
before. Backport of changeset 7097:3276140e9d55.
2018-07-10Backport: Optional indexing of line starts in UTF-8 documents by UTF-32 code ↵Neil1-1/+27
points and UTF-16 code units added. Converted instances of C++17 std::string_view to C++11. Also used const_casts where appropriate to fix compile errors. Backport of changeset 7063:0d5edc93e280.
2018-05-24Backport: Fix warnings. Add const, constexpr, and noexcept. Initialize. ↵Neil1-12/+12
Standard methods. Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases. Backport of changeset 6974:e99161ef7bdd.
2018-05-25Backport: Draw invalid bytes in DBCS when detected as blobs in a similar way ↵mitchell1-0/+11
to UTF-8. Backport of changeset 6962:514fde42ccbf, but without std::string_view.
2018-05-14Backport: Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-28/+28
ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed. Backport of changeset 6939:7441dcb96e6a.
2018-05-14Backport: Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-2/+1
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform. Backport of changeset 6938:a42c7cc3254b.
2018-05-03Backport: Avoid casts.Neil1-4/+4
Backport of changeset 6787:b690b9e1e111.
2018-05-03Backport: Eliminate XFromPosition overload for Sci::Position as ↵Neil1-7/+2
SelectionPosition overload can always be used. Backport of changeset 6785:161efa2f1972.
2018-05-01Backport: Bug [#2012]. Use '0' instead of '0l'.Neil1-1/+1
Backport of changeset 6768:afe3117ead02.
2018-04-30Backport: Feature [feature-requests:#1215]. Use Sci::clamp to shorten code.Neil1-6/+1
Backport of changeset 6760:e94cd333a5a9.
2018-04-25Backport: Use set of coercion functions for transforming WndProc parameters ↵Neil1-24/+20
into pointers. Backport of changeset 6738:5b39367ee7da.
2018-05-06Backport: Remove casts that are not needed since sptr_t and Sci::Position ↵mitchell1-28/+28
are the same type. Backport of changeset 6735:ed52dd761341.
2018-04-24Backport: Feature [feature-requests:#1215]. Make a parameter const.Neil1-1/+1
Backport of changeset 6733:f6be8941c4b8.
2018-05-06Backport: More const and cast avoidance.mitchell1-8/+8
Backport of changeset 6722:9a20edc44615.
2018-04-20Backport: Mark pointer to constant parameter as const.Neil1-1/+1
Backport of changeset 6721:33bf16396488.
2018-04-19Backport: Casting changed in many places, due to change to 64-bit variables ↵Neil1-347/+341
for 64-bit builds. Some of the changes ensure no truncation while others remove casts that are no longer needed because the externally visible Sci_Position is now identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and Document::SciLineFromPosition) added to avoid casting in client code. Sci::Line is currently identical to Sci::Position but it could be made smaller so lines have Sci::Line types and are cast. Some arguments widened. Backport of changeset 6705:5c0a80740b8c.
2018-05-05Backport: Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than ↵mitchell1-3/+6
2 GigaBytes. This option is provisional and experimental. Backport of changesets 6696:9729ff36c5b1 and 6723:cffe824ab55e. Also added '#include <cstddef>' to top of src/RESearch.cxx to fix 32-bit build error.
2018-04-16Backport: Convert topLine from a screen line to a document line before using ↵Neil1-1/+2
it to find a position. Backport of changeset 6691:372b160180b3.
2018-04-11Backport: Set the last X chosen when SCI_REPLACESEL called to ensure macros ↵Neil1-0/+1
work when text insertion followed by line up or down. Backport of changeset 6679:480de02f71f2.
2018-04-05Backport: Backed out changeset: 7402342dc7a3 Caching client rectangle on ↵Neil1-20/+18
EditView. This change was not compatible with Cocoa as it uses document-based coordinates rather than view-based. Backport of changeset 6673:a22abea8d41e.
2018-04-04Backport: Cache client rectangle on EditView so it can be used easily inside ↵Neil1-18/+20
EditView. Backport of changeset 6669:7402342dc7a3.
2018-05-05Backport: Split decorations into interface and implementation.mitchell1-14/+14
Backport of changeset 6658:693e737f3155.
2018-03-27Backport: Use an interface for ContractionState so that there can be differentNeil1-78/+81
implementations of that interface. Backport of changeset 6656:ffa2a06d3987.
2018-03-15Backport: Use forward class definitions of XPM and RGBAImage so only code ↵Neil1-1/+0
that uses them needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage. Backport of changeset 6624:32adac0930bb.
2018-03-09Backport: Use Position/Line/int more accurately in preparation for large ↵Neil1-26/+27
documents. Backport of changeset 6480:f2650eaa75e6.
2018-03-01Backport: Mark variables as const where simple.Neil1-113/+113
Backport of changeset 6470:d78a4b522662.
2018-03-01Backport: Use C++ cast in preference to C cast.Neil1-1/+1
Backport of changeset 6469:67f7890eac1d.
2018-03-01Backport: Mark pointer argument as const as not written to.Neil1-6/+6
Backport of changeset 6468:9ed7929c7900.
2018-02-24Backport: Fix move-extends-selection mode for rectangular and line selections.Mitchell Foral1-17/+52
Backport of changeset 6458:0a8a766722c0.
2018-02-17Backport: For rectangular selections, pressing Home or End now moves the ↵Vicente1-3/+14
caret to the Home or End position instead of the limit of the rectangular selection. Backport of changeset 6456:eaa6c7fa1a81.
2018-02-06Backport: [Bug #1983] Fix double tap word selection on Windows 10 1709 Fall ↵Dimitar Radev1-1/+1
Creators Update. Times of observed mouse events went backwards causing unsigned overflow. Backport of changeset 6449:1280ef150bbb.
2018-02-02Backport: Implement SC_DOCUMENTOPTION_STYLES_NONE.Neil1-3/+3
Backport of changeset 6448:431b814a54a6.
2018-01-26Backport: Add documentOption argument to SCI_CREATELOADER.Neil1-0/+1
Backport of changeset 6441:92c8f0f1b3e6.
2018-01-28Backport: Use std::abs in preference to abs as std::abs is generic and abs ↵Neil1-2/+2
casts to int which may drop information. Backport of changeset 6434:ed27432729c3.
2017-11-20Backport: Add SCI_GETMOVEEXTENDSSELECTION.Mitchell Foral1-0/+2
Backport of changeset 6418:85205da6ec1b.
2017-09-13Backport: Bug [#1971]. Fix line selection by clicking in the margin when ↵Neil Hodgson1-0/+2
scrolled. Backport of changeset 6389:96506cab38bd.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-2/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-08-28Backport: New header ILoader.h defines ILoader interface as it does not ↵Neil1-0/+1
belong in ILexer.h. Backport of changeset 6383:9c8257ff60b7.
2017-08-25Backport: Moved *StyleBits* APIs into deprecated category.Neil1-0/+3
Backport of changeset 6379:b44bb3627bbd.
2017-07-23Backport: Avoid warning although it appears incorrect.Neil Hodgson1-1/+1
Backport of changeset 6359:4a203fb1684e.