summaryrefslogtreecommitdiff
path: root/src/buffer.cc
AgeCommit message (Collapse)Author
2013-04-26Buffer::Modification::Position is a BufferCoord instead of a BufferIteratorMaxime Coste
2013-04-24Buffer: rename character_count method to byte_countMaxime Coste
2013-04-23Buffer: add is_valid(BufferCoord) methodMaxime Coste
2013-04-22support renaming buffersMaxime Coste
Changing buffer name allows to save a *make* or *grep* buffer when launching another one for exemple.
2013-04-12BufOpen hook is only called for file buffersMaxime Coste
2013-04-09sort includes directivesMaxime Coste
2013-04-09rename assert to kak_assert to avoid collisionsMaxime Coste
2013-04-04do not check buffer invariant in do_{erase,insert} as this cause O(n²) ↵Maxime Coste
behaviour
2013-03-25move absolute path logic to Buffer classMaxime Coste
2013-03-20utf8 validity is not a buffer concernMaxime Coste
2013-03-18Buffer: optimize do_insert to minimize changes in m_lines vectorMaxime Coste
2013-03-15Buffer::on_erase: avoid resizing lines more than necessaryMaxime Coste
2013-03-13Buffer: minor refactoringMaxime Coste
2013-02-28fix warningMaxime Coste
2013-02-27Add a debug option to Makefile, and use KAK_DEBUG define to remove debug codeMaxime Coste
2013-02-22buffer: remove too slow check from check_invariantMaxime Coste
2013-02-20Buffer: commit current undo group before attempting to undo anythingMaxime Coste
2013-02-20Buffer: replace {begin,end}_undo_group with a single commit_undo_group methodMaxime Coste
2013-01-28Buffer: small fix in apply_modificationMaxime Coste
2013-01-24Buffer::do_insert: fix on_insert call when inserting at the endMaxime Coste
2013-01-23Buffer: end is either one past last character, or one past last lineMaxime Coste
2013-01-23add undo unit_test and fix BufferMaxime Coste
2013-01-23add more assertsMaxime Coste
2013-01-23Buffer: small style fixesMaxime Coste
2013-01-22Buffer: check that newlines are at the end of linesMaxime Coste
2013-01-17Hooks now takes a non-const contextMaxime Coste
2013-01-11Add and use a Set template class for recuring small setsMaxime Coste
2012-12-28Buffer loses the 'New' flag when writtenMaxime Coste
2012-12-19Buffer: close undo group when savedMaxime Coste
2012-11-27fix buffer creation on empty fileMaxime Coste
2012-11-23Buffer takes a vector of lines as initial contentMaxime Coste
2012-11-23buffer: increment timestamp on notify savedMaxime Coste
2012-11-22Cleanups and minor refactoring on BufferMaxime Coste
2012-11-22move Window ownership to the ClientManager instead of the BufferMaxime Coste
2012-11-22rename (hook|option)_manager to (hook|option)s.Maxime Coste
And Global(Hook|Option)Manager to Global(Hook|Option)s
2012-11-21Buffer: replace reset_undo_data with a NoUndo flagMaxime Coste
2012-11-21minor fixes to buffer constructorMaxime Coste
2012-11-20Buffer: replace Buffer::Type with Buffer::FlagsMaxime Coste
2012-11-12make Buffer::{add,remove}_change_listener const and the listener list mutableMaxime Coste
2012-11-05Rework Window creation, avoid using the same window in multiple clientsMaxime Coste
2012-10-31Fix buffer iterator_at_line_{begin,end}(LineCount)Maxime Coste
2012-10-11Makefile: add -Wall to CXXFLAGSMaxime Coste
2012-10-11use ByteCount instead of CharCount when we are really counting bytesMaxime Coste
(that is most of the time when we are not concerned with displaying)
2012-10-08Buffer: add some utf8 sanity checksMaxime Coste
2012-10-02move clamp to utils.hhMaxime Coste
2012-09-11Buffer: reset undo data after executing hooks in constructorMaxime Coste
2012-09-10Buffer: Allow inserting at the end when the inserted text ends with an end ↵Maxime Coste
of line Adapted other code in consequence and added unit tests so that this behavior is maintained.
2012-08-23use a strongly typed int CharCount for character countsMaxime Coste
2012-08-22use a strongly typed int LineCount for line countsMaxime Coste
2012-08-21Add Buffer::iterator_at_line{begin,end}(size_t line) overloadsMaxime Coste