aboutsummaryrefslogtreecommitdiff
path: root/text.c
AgeCommit message (Collapse)AuthorFilesLines
2014-09-14All *_free(...) functions should accept a NULL argumentMarc André Tanner1-0/+2
2014-09-14Fix clang static analyzer warningsMarc André Tanner1-0/+8
2014-09-13Introduce some helper functions dealing with FilerangeMarc André Tanner1-0/+19
2014-09-13Rename text_insert_raw to text_insertMarc André Tanner1-5/+1
2014-09-13Introduce and use EPOS instead of (size_t)-1Marc André Tanner1-4/+4
2014-09-12Make sure that the state is consistent after an undo operationMarc André Tanner1-0/+2
When performing an undo operation, further changes should not be accounted to the then active action. Therefore take a snapshot which resets txt->current_action to NULL.
2014-09-12Remove outdated commentsMarc André Tanner1-2/+0
2014-09-12Introduce text_filename_setMarc André Tanner1-2/+6
This can be used to associate a given filename to a currently unnamed text.
2014-09-12Rename text_filename to text_filename_getMarc André Tanner1-1/+1
2014-09-12Restore cursor position after an undo/redoMarc André Tanner1-11/+17
2014-09-11Avoid segfault if no previous search has been performedMarc André Tanner1-1/+5
2014-09-10If text has been created from an empty file, store filename upon first saveMarc André Tanner1-0/+2
2014-09-10Add comments where appropriateMarc André Tanner1-2/+2
2014-09-09Fix a few memory leaksMarc André Tanner1-0/+1
2014-09-08Hook up search as a movementMarc André Tanner1-2/+4
2014-09-08Unify variable namingMarc André Tanner1-195/+195
Only textual substitution no functional changes.
2014-09-08Use named struct initializers where appropriateMarc André Tanner1-14/+6
2014-08-28text: fix iterator_char{prev,next} to accept NULL argumentMarc André Tanner1-2/+4
2014-08-25Move motion related stuff into own fileMarc André Tanner1-0/+4
2014-08-24Add license headerMarc André Tanner1-0/+15
2014-08-23Share common macros in util.hMarc André Tanner1-7/+1
2014-08-23text: invalidate line <-> pos mapping upon undo/redoMarc André Tanner1-0/+2
2014-08-23text: redesing mark implementationMarc André Tanner1-20/+16
Previously a mark was a byte offset from the start of the file which required updates whenever a text modification happened before it. Now it is simply a pointer into the underlying (mostly) append only buffer which remains valid throughout the whole life cycle.
2014-08-23text: refactor piece_getMarc André Tanner1-20/+29
2014-08-14Remove useless replace APIMarc André Tanner1-10/+0
The removed junk might not have the same length as the newly inserted one.
2014-08-14Rename files editor.[ch] -> text.[ch]Marc André Tanner1-0/+1094