summaryrefslogtreecommitdiff
path: root/src/buffer.cc
AgeCommit message (Collapse)Author
2015-12-06Change eolformat and BOM options to be enums instead of stringsMaxime Coste
2015-12-01Update buffer display names after changing working directoryMaxime Coste
Fixes #501
2015-11-10Remove useless checks, buffer has always at list one lineMaxime Coste
2015-10-17Move line parsing and to Buffer.cc directlyMaxime Coste
2015-09-27Store timespec for buffer fs timestamps, not just time_tMaxime Coste
time_t has a resolution of one second, which cause troubles when a file changes multiple time during that same second.
2015-09-01Cache buffer display nameMaxime Coste
2015-08-04Support flags getting modified by hooks at buffer creationMaxime Coste
Fixes #361
2015-05-26Workaround incomplete c++11 stdlib in gcc 4.8Maxime Coste
2015-05-22Move unit test functions in next to the code they are testingMaxime Coste
2015-05-14Keep hash stored in StringDataMaxime Coste
2015-05-14Do not use diff when reloading a no undo bufferMaxime Coste
2015-05-13Use diff when reloading bufferMaxime Coste
2015-03-31Use format for {Win,Buf}SetOption hooks descriptionMaxime Coste
2015-03-30Replace various adhoc operator+ based formatting with format funcMaxime Coste
2015-03-11Fix unneeded string copyMaxime Coste
2015-03-05Use a IdMap for storing hooksMaxime Coste
The number of hook names is small (<20), using an UnorderedMap is overkill, and prevents using StringView for key searching.
2015-03-01rename StringStorage to StringDataMaxime Coste
2015-02-16Wrap debug loop in ifdef KAK_DEBUGMaxime Coste
2015-02-06Fix compile warnings on OSX that could actually be errorsJimmy Thrasher
c++ -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic -DKAK_DEBUG -MD -MP -MF .buffer.d -c -o .buffer.o buffer.cc buffer.cc:35:20: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] kak_assert(not line->length == 0 and line->data()[line->length-1] == '\n'); ^ ~~ ./assert.hh:17:18: note: expanded from macro 'kak_assert' if (not (condition)) \ ^ buffer.cc:35:20: note: add parentheses after the '!' to evaluate the comparison first ./assert.hh:17:18: note: expanded from macro 'kak_assert' if (not (condition)) \ ^ buffer.cc:35:20: note: add parentheses around left hand side expression to silence this warning ./assert.hh:17:18: note: expanded from macro 'kak_assert' if (not (condition)) \ ^ buffer.cc:177:20: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] kak_assert(not line->length == 0 and line->data()[line->length-1] == '\n'); ^ ~~ ./assert.hh:17:18: note: expanded from macro 'kak_assert' if (not (condition)) \ ^ buffer.cc:177:20: note: add parentheses after the '!' to evaluate the comparison first ./assert.hh:17:18: note: expanded from macro 'kak_assert' if (not (condition)) \ ^ buffer.cc:177:20: note: add parentheses around left hand side expression to silence this warning ./assert.hh:17:18: note: expanded from macro 'kak_assert' if (not (condition)) \ ^ 2 warnings generated.
2015-02-04Fix incorrect Buffer::Change generated in Buffer::reloadMaxime Coste
2015-02-02Fix buffer reloadingMaxime Coste
2015-01-29Tweak Buffer::Change layoutMaxime Coste
2015-01-25Tweak SharedStringMaxime Coste
2015-01-22Avoid temporary strings on buffer load/reloadMaxime Coste
Pass directly a Vector<ref_ptr<StringStorage>> to the buffer
2015-01-19rename SharedString::Storage to StringStorage and use directly in BufferMaxime Coste
2015-01-15Replace InternedStrings with SharedString, shared_ptr basedMaxime Coste
2015-01-12replace all std::vector with VectorMaxime Coste
2014-12-23Move containers utils to containers.hh and add filtered/transformed utilsMaxime Coste
2014-12-18Revert "Add support for BufInsert/BufErase hooks"Maxime Coste
This is potentially quite slow, and not used, reintroduce later if we have a use case for it. This reverts commit 5f3a477277828f3c698dd844c8df3614b55dd85b.
2014-12-18Do not register timers for transient input handlersMaxime Coste
2014-12-17Add support for BufInsert/BufErase hooksMaxime Coste
2014-11-01Fix buffer being considered modified after reloadingMaxime Coste
2014-10-30Add scope class and encapsulate Options, Keymaps, Aliases and Hooks in itMaxime Coste
2014-10-30Add scoped aliasesMaxime Coste
aliases are now stored in window, buffer, or globally.
2014-10-28Fix invalid memory access when applying modifications on an empty bufferMaxime Coste
That can happen when undoing/redoing accross a buffer reload boundary.
2014-10-23Do not lose history when reloading a bufferMaxime Coste
Fixes #157
2014-10-20Port more code to StringView instead of const String&Maxime Coste
2014-10-05InternedStrings know their slotsMaxime Coste
2014-10-03Use InternedStrings for buffer contentsMaxime Coste
2014-10-01Add support for interned stringsMaxime Coste
Use interned strings for Modification contents and word database. Interned strings are guaranteed not to move in memory and are reference counted.
2014-09-22add a 'buffers' debug command to get info on alive buffersMaxime Coste
2014-09-09Add support for target column preservationMaxime Coste
Fixes #64
2014-07-05utf8: use end of sequence iterators for more securityMaxime Coste
2014-06-26Style fixesMaxime Coste
2014-06-02Remove undo group optimizerMaxime Coste
2014-05-24Remove use of 'offset' in buffer iterators, lines are just StringMaxime Coste
No need to maintain line offsets anymore.
2014-05-17Remove per lines timestamp in BufferMaxime Coste
2014-05-14Remove BufferChangeListenerMaxime Coste
2014-05-13SelectionList know its buffer and timestampMaxime Coste
2014-05-13Pass a at_end param to BufferChangeListener::on_{insert,erase}Maxime Coste