vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit d4a5992d1542791633f79d58f630c45972cd1fac parent 8d15ff90addd2fc8fbfb9ed843cfe2c99020952b Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 13 Sep 2014 18:43:19 +0200 Fix 'G' movement to end of file action.count is 1 by default. notice that this breaks 1G which should move to the first line / start of file. Diffstat:
| M | vis.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis.c b/vis.c @@ -498,7 +498,7 @@ static size_t till_left(const Arg *arg) { } static size_t line(const Arg *arg) { - if (action.count == 0) + if (action.count == 1) return text_size(vis->win->text); size_t pos = text_pos_by_lineno(vis->win->text, action.count); action.count = 0;