diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-02-24 16:17:57 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-02-27 18:56:28 +0100 |
| commit | e655f312a15fedca7beb1e7bbe57a1a3bf9933e1 (patch) | |
| tree | d8faa4c0cd9de3470008e47d3ab2037d0f843489 /main.c | |
| parent | e31b1e097de7530491bc85131c445a1ffccacdbf (diff) | |
| download | vis-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
