aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-12-17 16:29:06 -0700
committerRandy Palamar <randy@rnpnr.xyz>2026-01-06 15:38:58 -0700
commit65d0847af82ba6189817dfab4485de111e299634 (patch)
treed4e0d5a3a80a081785445d6d5e5c0adcc7ac3bc2 /vis.h
parent9f133c83126c77b05b18e3b3def8a9394d6b42f9 (diff)
downloadvis-65d0847af82ba6189817dfab4485de111e299634.tar.gz
vis-65d0847af82ba6189817dfab4485de111e299634.tar.xz
vis-marks: greatly simplify jumplist management
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.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vis.h b/vis.h
index 0b1c331..272df07 100644
--- a/vis.h
+++ b/vis.h
@@ -960,17 +960,17 @@ VIS_EXPORT void vis_mark_normalize(Array *array);
* Add selections of focused window to jump list.
* @param vis The editor instance.
*/
-VIS_EXPORT bool vis_jumplist_save(Vis*);
+VIS_EXPORT void vis_jumplist_save(Vis*);
/**
* Navigate jump list backwards.
* @param vis The editor instance.
*/
-VIS_EXPORT bool vis_jumplist_prev(Vis*);
+VIS_EXPORT void vis_jumplist_prev(Vis*);
/**
* Navigate jump list forwards.
* @param vis The editor instance.
*/
-VIS_EXPORT bool vis_jumplist_next(Vis*);
+VIS_EXPORT void vis_jumplist_next(Vis*);
/** @} */
/*