| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2023-08-27 | Make tabwidth option window-local | Alexey Yerin | 1 | -0/+6 | |
| 2023-08-24 | Lua API: access and set all available options | Randy Palamar | 1 | -0/+8 | |
| The first point of this commit is to allow all options to be read from lua. This has a number of uses for plugin writers. They are grouped into a couple of tables depending on what they control: `vis.options`: table with global configuration `win.options`: table with window specific configuration The second point is to allow you to set all these options as if they were simply lua variables. Technically this is already possible by using `vis:command("set ...")` but personally I think this interface is cleaner. Note that this already possible for some things like the current mode (eg. vis.mode = vis.modes.VISUAL). Examples: `vis.options.ai = true` `win.options.brk = " !?."` `win.options = { showeof = true, showtabs = true } There are a number of related issues and pull requests: closes #803: Lua API: let plugins read the values of options closes #812: Window layout property supersedes/closes #717: Add ability to access tabwidth from Lua supersedes/closes #1066: expose UI layout and allow it to be set from lua API | |||||
| 2023-07-28 | view.c: add word wrapping | Andrey Proskurin | 1 | -30/+86 | |
| this is contolled by the wrapcolumn/wc and breakat/brk options related #142: Word wrap and line breaks related #932: Vis for Prose? related #1092: Disabling line wrapping | |||||
| 2023-07-28 | view: refactor view_addch | Andrey Proskurin | 1 | -78/+78 | |
| 2023-05-22 | check for EOF before unsetting row, col & line cache in view_coord_get | Jeremy Bobbin | 1 | -1/+2 | |
| This commit fixes c22b2c2, which introduced a bug when the EOF was in view. | |||||
| 2023-03-19 | fix bug where visual-line selections after view were considered visible | Jeremy Bobbin | 1 | -1/+1 | |
| prior to this patch, if you had a visual-line selection after the view, and try to move it(& all other selections) up into the buffer, the selection would appear prematurely. https://github.com/martanne/vis/issues/1074 | |||||
| 2022-11-29 | fix miscellaneous spelling mistakes | Nick Hanley | 1 | -2/+2 | |
| 2020-12-10 | fix typos in comments | Moesasji | 1 | -1/+1 | |
| 2020-11-20 | view: make view_selections_dispose_all O(n) | Mateusz Okulus | 1 | -2/+5 | |
| The for loop in selection_free won't run because the next element will always be NULL, because we are freeing from the end. Close #852 | |||||
| 2020-04-27 | Avoid use of VLAs | Michael Forney | 1 | -2/+11 | |
| 2018-05-16 | vis: make sure zb redraws line at the bottom if possible | Marc André Tanner | 1 | -3/+0 | |
| Previously it would do nothing if the cursor was already on the last display line. Fix #697 | |||||
| 2018-03-12 | view: use strncat instead of an inline loop to concatenate cell data | Marc André Tanner | 1 | -4/+1 | |
| 2018-03-12 | view: fix buffer overflow when dealing with combining characters | Marc André Tanner | 1 | -2/+5 | |
| The `cell.len` attribute refers to the number of bytes of the underlying text which are represented by this cell. The actual NUL terminated data being displayed can have a completely unrelated length. For example a NUL byte has a `cell.len` of 1, but is displayed as `cell.data = "^@"`. Because we currently have a fixed cell capacity of 16 bytes (including the terminating NUL byte) long sequences of combining characters won't be displayed correctly. See also #679 | |||||
| 2018-03-11 | view: properly advance over incomplete unicode sequence | Marc André Tanner | 1 | -1/+1 | |
| When fetching more text we have to skip the bytes processed by the previous cell, otherwise we end up in an infinite loop. | |||||
| 2018-03-11 | Reset parsing state after mbrtowc(3) failure | Marc André Tanner | 1 | -0/+1 | |
| The standard says "if an encoding error occurs ... the conversion state is unspecified". | |||||
| 2017-07-14 | vis-lua: make selection first class primitives in Lua API | Marc André Tanner | 1 | -2/+2 | |
| 2017-07-08 | view: keep but clear primary selection if instructed to replace all | Marc André Tanner | 1 | -1/+4 | |
| Previously the last selection was kept implicitly to statisfy the invariant that at least one selection needs to exist. | |||||
| 2017-07-05 | vis: make sure all selections have same anchored state | Marc André Tanner | 1 | -1/+3 | |
| With the current model the differences between normal and visual mode is that in the latter selections are anchored (meaning one endpoint remains fixed), while in normal mode both endpoints can in principle be updated simultaneously (currently they are always colapsed to a singleton selection, giving the impression of cursors). | |||||
| 2017-07-04 | vis: implement `gv` by means of new "^ register | Marc André Tanner | 1 | -20/+0 | |
| This window local register holds the last active selections. | |||||
| 2017-06-27 | vis: properly set initial window ui options | Marc André Tanner | 1 | -1/+1 | |
| This should keep the EOF markers visible when another option is enabled. The whole UI option handling is a bit of a mess. In the longterm more of the drawing code should be moved into Lua. | |||||
| 2017-06-27 | Merge branch 'show-eof' of https://github.com/p-e-w/vis | Marc André Tanner | 1 | -1/+9 | |
| Conflicts: view.c view.h | |||||
| 2017-06-27 | Merge branch 'theme-tweaks-2' of https://github.com/p-e-w/vis | Marc André Tanner | 1 | -1/+1 | |
| Conflicts: view.c | |||||
| 2017-06-15 | view: make sure primary selection is visible | Marc André Tanner | 1 | -0/+3 | |
| 2017-06-15 | view: add functions to save/restore arbitrary ranges | Marc André Tanner | 1 | -0/+23 | |
| 2017-06-15 | view: add functions to get/set all selections | Marc André Tanner | 1 | -5/+34 | |
| 2017-06-15 | view: disallow setting of invalid selections | Marc André Tanner | 1 | -5/+9 | |
| 2017-06-15 | view: fix view_selections_set | Marc André Tanner | 1 | -8/+2 | |
| The anchor needs to be set after the cursor was positioned, otherwise the cursor placement will immediately destroy the selection for in the non-anchored case. | |||||
| 2017-06-15 | view: do not automatically anchor selections when setting range | Marc André Tanner | 1 | -1/+0 | |
| 2017-06-15 | view: introduce view_selections_normalize | Marc André Tanner | 1 | -0/+22 | |
| Dispose all invalid and merge all overlapping selections. | |||||
| 2017-06-15 | vis: rename uses of Cursor to Selection | Marc André Tanner | 1 | -296/+293 | |
| 2017-06-15 | view: rename view_cursors_column | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_selection_anchored | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_column{,count,next} | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_number | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_count | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_next | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_prev | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: view_cursors_selection_restore | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_save | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_start | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_swap | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_clear | Marc André Tanner | 1 | -3/+3 | |
| 2017-06-15 | view: rename view_selections_clear | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_selection_get | Marc André Tanner | 1 | -3/+3 | |
| 2017-06-15 | view: rename view_cursors_primary_{get,set} | Marc André Tanner | 1 | -3/+3 | |
| 2017-06-15 | view: rename view_cursors_clear | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursor_disposed | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_dispose | Marc André Tanner | 1 | -4/+4 | |
| 2017-06-15 | view: rename view_cursors_new | Marc André Tanner | 1 | -3/+3 | |
