aboutsummaryrefslogtreecommitdiff
path: root/editor.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-22Add some more commentsMarc André Tanner1-2/+26
2014-07-21Introduce cache layerMarc André Tanner1-27/+108
If multiple consecutive modifications happen to lie within the same piece perform the operations "in place". In particular no new pieces will be allocated if the changes occur at the end of the most recently modified piece. In this case the piece is simply extended. However changes in the middle of a piece involve memove(3) calls which might hurt performance. Since no new pieces are created the changes can't be undone on an individual basis. The frontend should therefore call 'editor_snapshot' at appropriate times inorder to invalidate the cache.
2014-07-21Add iterator functions to walk through textMarc André Tanner1-0/+51
2014-07-21Add comments regarding deletionMarc André Tanner1-1/+16
2014-07-17Add some ascii art to illustrate insertionMarc André Tanner1-0/+28
2014-07-17Implement modification detectionMarc André Tanner1-3/+6
2014-07-17Remove trailing white spacesMarc André Tanner1-11/+11
2014-07-17Document data structuresMarc André Tanner1-28/+52
2014-07-17Throw away redo history once a new action is performedMarc André Tanner1-7/+27
Keep all pieces in a global double linked list such that individual pieces can be removed.
2014-07-17Simplify + add prototypesMarc André Tanner1-5/+17
2014-07-16Introduce buffer holding textMarc André Tanner1-29/+142
2014-07-16Implement replacement/overwriteMarc André Tanner1-0/+8
2014-07-16Implement deletionMarc André Tanner1-1/+69
2014-07-15Implement insertionMarc André Tanner1-38/+78
2014-07-15Inital importMarc André Tanner1-0/+311
Still far from useable