aboutsummaryrefslogtreecommitdiff
path: root/vis-modes.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-27 07:23:36 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-27 07:23:36 +0100
commit7ce4e0cc1423bb55f798031014462fd192d23fc3 (patch)
treef0eb89dbf2b92c92eba0458f5344fc0a3f6eb68b /vis-modes.c
parente063464c7cdeb41796282d0efe13cc907928f3f8 (diff)
downloadvis-7ce4e0cc1423bb55f798031014462fd192d23fc3.tar.gz
vis-7ce4e0cc1423bb55f798031014462fd192d23fc3.tar.xz
vis: implement filter operator !
It currently works by switching to visual mode and then opening the command prompt with a default range which refers to the currently active selection.
Diffstat (limited to 'vis-modes.c')
-rw-r--r--vis-modes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis-modes.c b/vis-modes.c
index 7ded3ba..9da5009 100644
--- a/vis-modes.c
+++ b/vis-modes.c
@@ -115,6 +115,8 @@ static void vis_mode_prompt_leave(Vis *vis, Mode *new) {
Register tmp = vis->registers[VIS_REG_DEFAULT];
vis->registers[VIS_REG_DEFAULT] = vis->registers[VIS_REG_PROMPT];
vis->registers[VIS_REG_PROMPT] = tmp;
+ if (vis->action_prev.op == &ops[VIS_OP_FILTER])
+ macro_operator_stop(vis);
}
}