aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-02-24 16:17:57 +0100
committerMarc André Tanner <mat@brain-dump.org>2018-02-27 18:56:28 +0100
commite655f312a15fedca7beb1e7bbe57a1a3bf9933e1 (patch)
treed8faa4c0cd9de3470008e47d3ab2037d0f843489 /main.c
parente31b1e097de7530491bc85131c445a1ffccacdbf (diff)
downloadvis-e655f312a15fedca7beb1e7bbe57a1a3bf9933e1.tar.gz
vis-e655f312a15fedca7beb1e7bbe57a1a3bf9933e1.tar.xz
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 (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
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;
}