vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit c3edece34354ca4fa0820405c69a52dce6fbdaca parent bf28bbb8dd6b876b20244a2a2eb657ee46585ad8 Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 24 Feb 2018 16:17:57 +0100 vis: reset count after window scroll/slide actions Previously something like n<C-e> would also apply the count `n` to the subsequent action. Diffstat:
| M | main.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/main.c b/main.c @@ -2176,6 +2176,7 @@ static const char *wscroll(Vis *vis, const char *keys, const Arg *arg) { view_scroll_down(view, count); break; } + vis_count_set(vis, VIS_COUNT_UNKNOWN); return keys; } @@ -2188,6 +2189,7 @@ static const char *wslide(Vis *vis, const char *keys, const Arg *arg) { view_slide_down(view, count); else view_slide_up(view, count); + vis_count_set(vis, VIS_COUNT_UNKNOWN); return keys; }