aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ContractionState.cxx
AgeCommit message (Collapse)AuthorFilesLines
2022-07-29Apply rule-of-zero to delete standard methods where possible as handled byNeil1-9/+0
contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations.
2022-07-24Add line_cast function to simplify code and avoid warnings.Neil1-23/+29
Unsure if this is worthwhile.
2022-07-24Bug [#2340] Simplify expand all folds. Speed up expand line a little.Zufu Liu1-5/+21
2021-10-09Remove call of virtual function during destruction as default destruction doesNeil1-3/+1
everything needed. Fixes warning from Cppcheck 2.6.
2021-08-25Allow SCI_HIDELINES to hide the first line or all lines.Neil1-1/+1
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-2/+2
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-2/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2020-06-11Use noexcept where safe and maintainable.Neil1-26/+26
2019-05-17Optimize InsertLines and DeleteLines for ContractionState if no folds ↵Neil1-4/+12
contracted.
2019-04-05Feature [feature-requests:#1272]. Add API to set default fold display text.Neil1-7/+1
2019-01-06Bug [#2068]. Fix some clang-tidy warnings.Zufu Liu1-1/+1
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-04-20Feature [feature-requests:#1215]. Fix forwarding reference warnings.Neil1-1/+2
2018-04-17Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes.Neil1-2/+5
This option is provisional and experimental.
2018-04-17Templatize ContractionState so it can later be switched between 32-bits and ↵Neil1-69/+99
64-bits.
2018-04-14Make some changes recommended by clang-tidy.Neil Hodgson1-1/+1
2018-03-27Use an interface for ContractionState so that there can be differentNeil1-39/+111
implementations of that interface.
2018-03-09Use Position/Line/int more accurately in preparation for large documents.Neil1-4/+4
2018-03-01Mark variables as const where simple.Neil1-5/+5
2018-03-01Use make_unique in preference to new.Neil1-5/+5
From Effective Modern C++ Item 21.
2018-02-01Templatize RunStyles so it can be over ranges of different types and containNeil1-3/+3
different style types. Currently only instantiated over <int, int>.
2018-02-01Templatize Partitioning so it can hold different types.Neil1-1/+1
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-2/+0
interfaces ILexer4 and IDocument.
2017-05-21Make SparseVector work with move-only types.Neil1-6/+7
Define UniqueString as a move-only string and use in a SparseVector for ContractionState. Remove SparseVector method specializations that are no longer needed.
2017-05-21Make SplitVector work with move-only types like unique_ptr.Neil1-0/+1
Provide InsertEmpty and both const and non-const reference returning operator[]. Add and fix comments.
2017-05-01Use std::unique_ptr to simplify ContractionState.Neil1-17/+11
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-2/+3
where it may be needed in the future.
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-32/+32
and lines.
2016-11-29Textual tags may be displayed on folded lines with SCI_TOGGLEFOLDSHOWTEXT.Tse Kit Yam1-1/+31
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
2015-07-04Throw an exception for a negative sized reallocation as occurs when askedNeil Hodgson1-0/+1
for more than 2GB.
2014-07-23Avoid shadowed names mostly in method prototypes. Turn off shadowNeil1-9/+9
warnings for lexers since they may be maintained by others.
2014-04-22Hoisting some calculations into classes: ContractionState::DisplayLastFromDocNeil Hodgson1-0/+4
Range::First and Range::Last. Changing Editor::RectangleFromRange arguments to a Range. Simplifying code and specifying some local variables as const.
2013-04-19Using std::fill instead of a loop is much faster. As much as 4x on a large ↵nyamatongwe1-0/+2
block.
2013-02-28Return last display line for document lines beyond document end.nyamatongwe1-1/+1
2011-07-02Fix warning from previous change.nyamatongwe1-0/+2
2011-07-02Fix for assertion failure with annotation. Bug #3347268.nyamatongwe1-1/+1
Protect against setting height of line beyond end of document.
2011-06-07Make SCN_NEEDSHOWN notification work when word wrap is enabled.nyamatongwe1-0/+8
This fixes the last remaining issue from bug #3291579. From Marko Njezic
2010-09-24Added SCI_CONTRACTEDFOLDNEXT as a way to find contracted fold headers ↵nyamatongwe1-0/+17
efficiently.
2010-02-17Formatting whitespace.nyamatongwe1-2/+2
2007-07-26Resetting correctly.nyamatongwe1-0/+1
2007-07-26Fixed bug when ShowAll called where linesInDocument was always reset to 1nyamatongwe1-1/+2
which hid most of the file.
2007-07-25Changed ContractionState data structure to be more efficient by not onlynyamatongwe1-195/+151
modifying data near an insertion or deletion when there is good locality of modification.
2007-06-01integrate OS X support for scintilla. a big patch with a little commit ↵scaraveo1-0/+4
message :) - now uses namespaces (optionally for non-os x) to avoid conflicts with OS X libraries - several fixes in the OS X layer since the branch was commited in 2005 - used in Komodo since 2005, so pretty stable
2006-12-31Fixed folding slowness when pasting a large amount of text on an empty line. ↵nyamatongwe1-1/+1
Does not propagate wgitespace flag onto new lines which made them subordinate. Setting a line visible in contraction state now only invalidates the data structure if line currently not visible.
2006-02-07Set linesInDisplay to linesInDoc in ShowAll to avoid crashes whennyamatongwe1-0/+6
out of document line numbers used.
2003-10-16When lines are deleted, move up line heights.nyamatongwe1-0/+1