vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit cf9cee32398e9d9fd1391994746490b72a0b6140
parent bb55ac21570750f1ce6ef46495c14e07484a1d3f
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon,  8 Sep 2014 17:11:50 +0200

Fix repeat command

Some movements depend on a global action, therefore restore it when
repeating an action.

Diffstat:
Mconfig.def.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -275,7 +275,8 @@ void action_do(Action *a); void action_reset(Action *a); static void repeat(const Arg *arg) { - action_do(&action_prev); + action = action_prev; + action_do(&action); } static void count(const Arg *arg) {