aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
AgeCommit message (Collapse)AuthorFilesLines
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-2/+0
interfaces ILexer4 and IDocument.
2017-04-29Use std::unique_ptr, std::vector, and move construction to simplify UndoHistoryNeil1-46/+22
and make it easier to modify. Remove out of date warning suppression.
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-07Check index before checking value at index.Neil1-2/+2
2017-04-06Added const where possible.Neil1-16/+16
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-4/+5
where it may be needed in the future.
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-37/+37
and lines.
2015-12-31Treat Unicode line ends like common line ends when maintaining fold state.Neil1-0/+19
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
2015-02-16Fix bugs caused by deleting text with undo collection off when entering IME ↵Neil Hodgson1-0/+5
composition mode. This deleted text isn't in the undo history and it isn't in the document so can never be recovered so makes it impossible to correctly perform undo. Add logging for unexpected situations and throw an exception when undo can't be performed. Ensure empty marked text range is always in canonical (NSNotFound,0) form.
2014-10-20Optimize retrieval of empty range.Neil1-1/+1
2014-07-18Added the tentative undo feature. This is useful for IMEs that want to displayNeil1-1/+39
and manipulate a character being composed, but may then commit or remove it leaving no history in undo of the intermediate forms.
2014-05-24Removing style byte indicators.Neil1-7/+6
2013-10-18Avoid a spurious warning from Visual Studio 2013 Code Analysis.Neil1-0/+4
2013-07-21Normalising order of language headers.Neil1-2/+2
2013-07-03Make CellBuffer::DeleteChars return a pointer to the deleted data evenNeil1-6/+9
when deleting all of the buffer.
2013-07-03Restore return of data from InsertString/DeleteChars.nyamatongwe1-6/+5
2013-05-24Made methods const where they can be and are logically const as well.nyamatongwe1-3/+3
2013-05-03Moved allocation of data owned by Action into Action::Create.nyamatongwe1-12/+10
Made more variables 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-01-26Fixed unused value warning.nyamatongwe1-2/+1
2013-01-19Support the three Unicode line ends NEL, LS, and PS in CellBuffer, Document,nyamatongwe1-7/+108
Editor and the message interface. Will only be turned on for lexers that support Unicode line ends.
2012-05-26Add GetRangePointer and GetGapPosition methods.nyamatongwe1-0/+8
2010-09-25Optimization of line layout by minimizing calls in Editor::LayoutLine and ↵nyamatongwe1-0/+13
avoiding case force processing unless at least one style uses a case force option.
2010-09-24Added GetRange method to SplitVector as fast way to retrieve elements.nyamatongwe1-4/+1
2010-05-05Made some methods const.nyamatongwe1-2/+2
2010-05-04Changed insertion of multi-line text so that markers are moved down.nyamatongwe1-1/+0
See bug #2986727.
2010-04-19Potential fix to bug #974009 and #2986727 Markers don't move when return isnyamatongwe1-6/+10
hit at start of line.
2010-03-13Adding const to methods where possible.nyamatongwe1-2/+2
2010-02-17Formatting whitespace.nyamatongwe1-3/+3
2010-01-19Fully intialize Action.nyamatongwe1-0/+1
2009-07-12Since now using exceptions, don't check result from new.nyamatongwe1-2/+0
2009-06-24Some extra const constraints added while working on discontiguous selection.nyamatongwe1-1/+1
2009-06-10Clear out per-line data when all contents removed.nyamatongwe1-1/+4
2009-04-24Added namespace defintion to PerLine.h and using namespace innyamatongwe1-0/+4
CellBuffer.cxx to make build on OS X.
2009-04-19Added UNDO_MAY_COALESCE flag to AddUndoAction.nyamatongwe1-16/+23
2009-04-12Updated for new way of handling per-line data.nyamatongwe1-317/+10
2009-04-04Added AddUndoAction call for adding application actions into undo stack.nyamatongwe1-0/+8
2008-04-27Implemented GetCharacterPointer feature.nyamatongwe1-0/+4
2008-01-21Fixed crash when line states is allocated and line inserted after end ofnyamatongwe1-0/+1
line states.
2007-11-23Fixed crash when using line state, the final line has not been given a linenyamatongwe1-1/+1
state and is deleted.
2007-07-30Fix bug #1760848 by ensuring undo stack level is maintained during annyamatongwe1-0/+1
automatic load while reload.preserves.undo=1.
2007-07-27Changed lineStates to a SplitVector so that it supports insert and deletenyamatongwe1-8/+23
so inserting and deleting lines does not cause a really large number of changed values under most circumstances leading to fewer notifications. SVector is no longer used.
2007-07-08Added const to methods that should not logically need to modify object.nyamatongwe1-4/+4
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
2007-01-03Rely on SplitVector::ValueAt allowing out-of-range access to simplify ↵nyamatongwe1-20/+8
calling code.
2007-01-02Separated the cell buffer into substance and style buffers.nyamatongwe1-83/+68
2007-01-01Major change to CellBuffer class with addition of Partitioning class and ↵nyamatongwe1-341/+159
SplitVector template. Inserting and deleting lines are made more efficient by lessening the amount of per line information copied. Marker data is only allocated for each line if markers are added.
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-10-17Armel Asselin contributed a feature that adds the flag SC_STARTACTION tonyamatongwe1-7/+10
modification notifications where the modification is the first step of an undo transaction. This is used to synchronize with the container's undo stack.