aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-11-15Backport: Feature [feature-requests:#1316] Allow target to have virtual space.Neil1-38/+54
Backport of changeset 7768:5d73aa55a6ee.
2019-11-15Backport: Feature [feature-requests:#1316] Add access to virtual space at ↵Neil1-0/+6
start and end of multiple selections. Backport of changeset 7767:80102fe650b2.
2019-11-03Backport: Bug [#2130]. Setting rectangular selection made faster by reusing ↵Neil1-1/+4
surface. Backport of changeset 7758:703e30efe7bf.
2019-07-05Backport: Bug [#2118]. Add TabMinimumWidth property to API so applications ↵Neil1-0/+7
can display overviews or minimaps with reasonable layout. Backport of changeset 7700:e6efe007d2dc.
2019-07-11Backport: Bug [#2038]. Source of input reported in SCN_CHARADDED.mitchell1-6/+7
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT. Backport of changeset 7613:4cfac35c71bd.
2019-06-22Backport: Bug [#1924]. Option to allow block carets to trail selection ranges.Neil1-1/+1
Bit flag value is CARETSTYLE_BLOCK_AFTER=256. Backport of changeset 7609:340a0f51fb3c.
2019-06-22Backport: Feature [feature-requests:#1297] Update to use INDICATOR_ instead ↵Neil1-18/+18
of INDIC_ as INDIC_ is also used for indicator styles. Backport of changeset 7594:190079cd334f.
2019-07-11Backport: Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.mitchell1-5/+6
Backport of changeset 7575:e1e9f53b0423.
2019-05-24Backport: Support output lengths >2GB for SCI_GETSTYLEDTEXT.Zufu Liu1-2/+2
Backport of changeset 7506:d20bd1c65a73.
2019-05-24Backport: Optimize SCI_GETSELTEXT by avoiding per-character calls.Zufu Liu1-4/+4
Backport of changeset 7505:1de0cb213456.
2019-05-24Backport: Optimize SCI_GETCURLINE by avoiding per-character calls.Zufu Liu1-5/+3
Backport of changeset 7504:b46332260eee.
2019-05-24Backport: Optimize SCI_GETLINE by avoiding per-character calls.Zufu Liu1-6/+5
Backport of changeset 7503:56ccae81df17.
2019-05-04Backport: Bug [#2102]. Allow length argument to be past end of document for ↵Zufu Liu1-1/+1
SCI_GETTEXT. More compatible with state before change set 7489. Backport of changeset 7490:2550e2a306c0.
2019-05-02Backport: Optimize SCI_GETTEXT by calling Document::GetCharRange instead of ↵Neil1-5/+4
looping for each byte. Backport of changeset 7489:c9118d39963d.
2019-04-17Backport: Bug [#2093]. For DBCS make result of "\x82\xCC" be 0x82CC instead ↵Neil1-1/+1
of 0x82CE. Backport of changeset 7429:1dcd0ca93618.
2019-04-10Backport: Bug [#2093]. Fix exception when inserting DBCS text.Zufu Liu1-8/+13
Backport of changeset 7415:a7d3bc738c23.
2019-04-05Backport: Feature [feature-requests:#1272]. Add API to set default fold ↵Neil1-0/+8
display text. Backport of changeset 7400:9fcb52fdb307.
2019-03-31Backport: Feature [feature-requests:#1272]. Add FoldDisplayTextGetStyle to matchZufu Liu1-0/+3
FoldDisplayTextSetStyle. Backport of changeset 7394:8fe3c581aeb9.
2019-04-16Backport: Feature [feature-requests:#1259]. Add ↵mitchell1-0/+7
SCI_SETCHARACTERCATEGORYOPTIMIZATION API to optimize speed of character category features. Backport of changeset 7392:2832adedd0f4, but with added includes for Sci::clamp().
2019-03-29Backport: Include "CharacterCategory.h" in all files that include ↵Neil1-0/+1
"Document.h" as it will be needed for adding a CharacterCategory feature. Backport of changeset 7391:9d98d77e920f.
2019-03-18Backport: Add some operators to Point to simplify client code.Neil1-12/+8
Backport of changeset 7321:d488340e94c0.
2019-03-31Backport Avoid hangs in idle styling modes caused by high-priority idle work ↵mitchell1-3/+7
styling. Backport of changeset 7315:57ea0255c8aa, but without constexpr, as non-static data members cannot be constexpr in C++11.
2019-03-09Backport: Use constexpr where reasonable and move groups of static functions ↵mitchell1-6/+14
into unnamed namespace. Backport of changeset 7289:3f930310a0de, but without complicated constexpr functions, since they are not available in C++11.
2019-03-03Backport: Remove destructor that doesn't need to be defined.Neil1-2/+0
Backport of changeset 7288:86ed07cd2809.
2019-03-03Backport: Use noexcept where reasonable.Neil1-24/+24
Backport of changeset 7287:0272b3c3a03b.
2019-03-03Backport: Bug [#2083]. Ensure container notified if Insert pressed when ↵Neil1-0/+4
caret off-screen. Backport of changeset 7285:9fcf43a91078.
2019-02-10Backport: Bug [#2078]. Tidying code.Neil1-2/+1
Backport of changeset 7252:25a0367e9349.
2019-02-09Backport: Bug [#2078]. Fix garbage text from SCI_MOVESELECTEDLINESUP andNeil1-1/+5
SCI_MOVESELECTEDLINESDOWN for rectangular or thin selection by performing no action. Backport of changeset 7251:df5c32512d3d.
2019-02-05Backport: Feature [feature-requests:#1217]. Change API so block just for ↵Zufu Liu1-2/+2
overstrike. Backport of changeset 7249:06b6a93d8e3f.
2019-02-02Backport: Feature [feature-requests:#1217]. Implement CARETSTYLE_BLOCK_ALWAYS.Zufu Liu1-2/+2
Backport of changeset 7248:aba09a1c7c63.
2019-01-13Backport: Replace the only use of a function from <cctype> with a Scintilla ↵Neil1-1/+0
function. Remove inclusion of <cctype> except in lexers as cctype functions often behave poorly and may crash for out of bounds arguments. Backport of changeset 7228:348e55f8107c.
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.