aboutsummaryrefslogtreecommitdiff
path: root/vis-marks.c
AgeCommit message (Collapse)AuthorFilesLines
2026-01-06vis-marks: make mark set cache actually usefulRandy Palamar1-43/+23
Without also saving and restoring the editor mode when the selections were added to the cache almost no useful actions can be performed. While we are at it the 3 jumplist functions can just be combined into one.
2026-01-06vis-marks: greatly simplify jumplist managementRandy Palamar1-81/+27
As far as I could tell from the code this was supposed to be a fixed size LRU cache of sets of selection regions. The structure had a maximum size member but it was never set or used. Furthermore there was some very complicated management of 2 parallel sets of regions. Instead of that mess just treat the cache as a circular buffer. Note that this is really not that useful at the moment. While the selection regions are saved and restored the editor mode is not. Therefore the selection is visible but not in any way usable. That will be fixed in the next commit.
2025-01-12array: delete onelinersRandy Palamar1-11/+11
same as buffer commit Array is completely visible
2024-05-21remove some view pointer chasingRandy Palamar1-8/+5
Same as previous commit each window only has a single View. No need for it to be stored elsewhere in memory.
2024-05-21make Selection unopaqueRandy Palamar1-2/+2
2020-09-17vis: provide reverse mapping function for mark namesMarc André Tanner1-0/+10
2017-07-17vis: specify window in mark related APIMarc André Tanner1-5/+7
This should also fix coverity issue 157024.
2017-07-14vis: use distinct mark to save last selectionsMarc André Tanner1-1/+1
This partially reverts f9e2b884c15919757651db8b10c033a344a19e75 further jumps after leaving visual mode should not break `gv`.
2017-07-10vis: let '^ mark point to top of jump listMarc André Tanner1-8/+7
2017-07-10vis: implement jump list in terms of marksMarc André Tanner1-8/+136
2017-07-10vis: rename default mark to 'Marc André Tanner1-1/+1
2017-07-08vis: cleanup marks implementationMarc André Tanner1-0/+103
We now use ' to refer to marks. Mark a is set using 'am and restored using 'aM while this is slightly harder to type than ma and 'a it is consistent with register usage for yank/put and allows a default mark to be used which is handy for quick selection manipulation primitives.