aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/vis-core.h b/vis-core.h
index 6e601ab..82e684a 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -161,9 +161,18 @@ struct Win {
Mode *parent_mode; /* mode which was active when showing the command prompt */
Win *prev, *next; /* neighbouring windows */
- /* Jumplist LRU */
- size_t mark_set_lru_cursor;
- Array mark_set_lru[32];
+ /* NOTE: Selection Jump Cache
+ * Anytime the selection jumps the previous set of selections gets
+ * pushed into this cache. The user can navigate this cache to
+ * restore old selections and they can save their own selection
+ * sets into the cache.
+ *
+ * IMPORTANT: cursor is not kept in bounds. it is always used modulo VIS_MARK_SET_LRU_COUNT
+ */
+ #define VIS_MARK_SET_LRU_COUNT (32)
+ size_t mark_set_lru_cursor;
+ Array mark_set_lru_regions[VIS_MARK_SET_LRU_COUNT];
+ enum VisMode mark_set_lru_modes[VIS_MARK_SET_LRU_COUNT];
};
struct Vis {