From e655f312a15fedca7beb1e7bbe57a1a3bf9933e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 24 Feb 2018 16:17:57 +0100 Subject: [PATCH] vis: reset count after window scroll/slide actions Previously something like n would also apply the count `n` to the subsequent action. --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index db2ca28..c810ed4 100644 --- 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; } -- 2.11.4.GIT