aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
AgeCommit message (Collapse)AuthorFilesLines
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.
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.