vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 25af59126592d0a5afc46aa0ffbc6ed6ace8b857
parent c8028eba46e5e7d389d69f77c93982597b1b27d8
Author: Marc André Tanner <mat@brain-dump.org>
Date: Sun, 27 Mar 2016 23:33:23 +0200
vis: fix changing of primary cursor via Ctrl-{u,d}
Diffstat:
| M | main.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c @@ -1360,7 +1360,7 @@ static const char *cursors_navigate(Vis *vis, const char *keys, const Arg *arg) return wscroll(vis, keys, arg); Cursor *c = view_cursors_primary_get(view); for (int count = vis_count_get_default(vis, 1); count > 0; count--) { - if (arg->i < 0) { + if (arg->i > 0) { c = view_cursors_next(c); if (!c) c = view_cursors(view);