| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2020-11-13 | sam: simplify boolean expression, start < end implies end > 0 | Marc André Tanner | 1 | -1/+1 | |
| 2020-11-13 | map: remove no longer used map_leaf function | Marc André Tanner | 2 | -18/+0 | |
| 2020-11-13 | Merge branch 'master' of https://github.com/ccao001/vis | Marc André Tanner | 1 | -1/+1 | |
| 2020-11-13 | build: use feature test macros for memrchr configure check | Marc André Tanner | 1 | -1/+1 | |
| Previously these were only used to compile the main project source, resulting in inconsistencies between the feature detection and actual usage. | |||||
| 2020-11-12 | build: add -D_NETBSD_SOURCE for NetBSD | Silas | 1 | -0/+1 | |
| memrchr() signature is not exposed by default for NetBSD. If one does not add -D_NETBSD_SOURCE, the compiler uses its own signature for memrchr() that returns a 32-bit integer, leading to misbehaviour in some situations. Defining _BSD_SOURCE doesn't work, so we define _NETBSD_SOURCE. | |||||
| 2020-11-12 | lua: fix typo in lilypond file extension | Carla Cao | 1 | -1/+1 | |
| There is no .lily file but there is a .ily file in lilypond for stylesheets. They are like css for lilypond. See here: http://lilypond.org/doc/v2.18/Documentation/learning/style-sheets | |||||
| 2020-10-30 | test: update | Marc André Tanner | 1 | -5/+8 | |
| 2020-10-30 | text: simplify iterator_init | Marc André Tanner | 1 | -2/+1 | |
| This was added in c240368d5da8208c15e0263034384414d938afb3 to work around a possibly bogus tis-interpreter warning regarding multiple accesses in the same expression. | |||||
| 2020-10-30 | text: fix invalid pointer comparison | Marc André Tanner | 1 | -1/+1 | |
| 2020-10-30 | text: avoid invalid pointer arithmetic | Marc André Tanner | 1 | -2/+2 | |
| 2020-10-10 | test: update | Marc André Tanner | 1 | -9/+5 | |
| 2020-10-10 | text: move higher level utility functions to separate file | Marc André Tanner | 3 | -68/+73 | |
| The moved functions do not need access to internals of text.c, but instead use the public interfaces. Splitting them out should facilitate experimentation with different core text management data structures. | |||||
| 2020-10-10 | text: move generic iterator functionality to separate file | Marc André Tanner | 3 | -170/+178 | |
| 2020-10-10 | text: move I/O related code to separate file | Marc André Tanner | 4 | -562/+587 | |
| This groups all I/O related code together to make it reusable in different core text data structure implementations. | |||||
| 2020-10-10 | build: list source files on separate lines | Marc André Tanner | 1 | -4/+22 | |
| 2020-10-10 | text: provide public text_iterator_init | Marc André Tanner | 2 | -2/+7 | |
| It can be used to initialize a (stack allocated) Iterator structure, avoiding the copying of the return value as done by text_iterator_get which depending on the implementation might be problematic. | |||||
| 2020-10-10 | text: rename internal text_iterator_init | Marc André Tanner | 1 | -4/+4 | |
| This is in preparation for a public function of the same name. | |||||
| 2020-10-10 | text: mark return value of text_iterator_text as const | Marc André Tanner | 2 | -5/+5 | |
| 2020-10-10 | text: make text_snapshot return whether it succeeded | Marc André Tanner | 2 | -2/+3 | |
| Currently this can't fail, but one can imagine implementations which do. | |||||
| 2020-10-10 | array: mark array_peek argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | array: mark array_capacity argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | array: mark array_init_from argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_delete_range range argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_save_write_range range argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_mmaped argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | array: mark array_get_ptr argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | array: mark array_get argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | array: mark array_length argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_write{,_range} argument as const | Marc André Tanner | 2 | -4/+4 | |
| 2020-10-10 | text: mark text_size argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_mark_get argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_iterator_byte_get argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_bytes_alloc0 argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_byte(s)_get argument as const | Marc André Tanner | 2 | -4/+4 | |
| 2020-10-10 | text: mark text_iterator_get argument as const | Marc André Tanner | 2 | -4/+4 | |
| 2020-10-10 | text: mark text_state argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_modified argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: mark text_stat argument as const | Marc André Tanner | 2 | -2/+2 | |
| 2020-10-10 | text: introduce text_iterator_text | Marc André Tanner | 2 | -3/+11 | |
| 2020-10-10 | text: introduce text_iterator_has_{next,prev} | Marc André Tanner | 2 | -4/+14 | |
| Abstract away access to `it->piece` inorder to enable different implementations/backends. | |||||
| 2020-10-10 | text: add namespace prefix to block type constants | Marc André Tanner | 1 | -10/+10 | |
| 2020-10-10 | text: avoid direct access to txt->blocks in I/O related code | Marc André Tanner | 1 | -3/+10 | |
| 2020-10-10 | text: introduce text_saved | Marc André Tanner | 1 | -10/+11 | |
| Utiltiy function to update book keeping data after a successful save, takes an optional struct stat of the new file. | |||||
| 2020-10-10 | text: use public text_stat interface where possible | Marc André Tanner | 1 | -3/+4 | |
| 2020-10-10 | text: introduce block_load | Marc André Tanner | 1 | -24/+36 | |
| 2020-10-10 | text: store blocks in array | Marc André Tanner | 1 | -31/+35 | |
| Make block manipulation routines independent of core text data structure, enabling re-usage in different implementations. | |||||
| 2020-10-10 | text: simplify reading of initial file content | Marc André Tanner | 1 | -6/+7 | |
| Avoid unnecessary copy and system calls in block_read. | |||||
| 2020-10-10 | vis: add vis-selection-new-match-all | Evan Gates | 3 | -10/+32 | |
| Add new vis-selection-new-match-all command, default keybinding <C-a> in visual mode. Refactor selections_next_match to find all matches if arg.b is true. This does not affect existing configs as arg.b defaults to false. | |||||
| 2020-10-10 | vis: refactor selections_match_next | Evan Gates | 1 | -35/+8 | |
| A lot of code from selections_match_next was duplicated in selections_match_next_literal. Use the new text_object_find_next/prev functions to combine the two match_next functions into one. | |||||
| 2020-10-10 | text: add text_object_find_next/prev | Evan Gates | 2 | -0/+17 | |
| Add two new text-object functions to search forwards/backwards for a string literal (not a regex) with the same signature as text_object_word_find_next/prev. This allows them to be used interchangeably with the word based variant through function pointers. | |||||
