diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-20 16:56:52 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-20 17:14:48 +0100 |
| commit | e6f798a651f3fbf7d5bd667d8f956e17ccbca5e0 (patch) | |
| tree | 04617144def355b811be98094d4bfed6a435de7a /vis-modes.c | |
| parent | 181fe9aae12c6f25d8e5a10309c4e551bef338dd (diff) | |
| download | vis-e6f798a651f3fbf7d5bd667d8f956e17ccbca5e0.tar.gz vis-e6f798a651f3fbf7d5bd667d8f956e17ccbca5e0.tar.xz | |
vis: slightly cleanup repeat code, always set dot register
Diffstat (limited to 'vis-modes.c')
| -rw-r--r-- | vis-modes.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vis-modes.c b/vis-modes.c index 84f2e0b..4b5fb3c 100644 --- a/vis-modes.c +++ b/vis-modes.c @@ -201,10 +201,7 @@ static void vis_mode_insert_replace_enter(Vis *vis, Mode *old) { vis->action_prev.op = &vis_operators[VIS_OP_MODESWITCH]; vis->action_prev.mode = vis->mode->id; } - if (!vis->macro_operator) { - macro_operator_record(vis); - vis->action_prev.macro = vis->macro_operator; - } + macro_operator_record(vis); } static void vis_mode_insert_idle(Vis *vis) { |
