aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-08 17:11:50 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-08 17:11:50 +0200
commit403ee5284a70f778b379041c169f72a7586c59ee (patch)
treeb153dada776d8a66c133494c5af3c901900b5219
parent2dff85e19e270f030ab43d2954eb8adb05fb232d (diff)
downloadvis-403ee5284a70f778b379041c169f72a7586c59ee.tar.gz
vis-403ee5284a70f778b379041c169f72a7586c59ee.tar.xz
Fix repeat command
Some movements depend on a global action, therefore restore it when repeating an action.
-rw-r--r--config.def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 32aca77..f93bbac 100644
--- 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) {