From 6ced61ef5f366001877823ed8aff978035fa53c8 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Wed, 17 Dec 2025 17:19:10 -0700 Subject: vis-marks: make mark set cache actually useful 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. --- main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index e336916..1aade34 100644 --- a/main.c +++ b/main.c @@ -1247,12 +1247,7 @@ static KEY_ACTION_FN(ka_percent) static KEY_ACTION_FN(ka_jumplist) { - if (arg->i < 0) - vis_jumplist_prev(vis); - else if (arg->i > 0) - vis_jumplist_next(vis); - else - vis_jumplist_save(vis); + vis_jumplist(vis, arg->i); return keys; } -- cgit v1.2.3