From 02c6df7cd4bca89506cf1d0e4a08bd719e8f17d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 6 Apr 2016 22:03:18 +0200 Subject: vis: fix vi filter operators ! and = --- vis.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 3701228..d2d0c2f 100644 --- a/vis.c +++ b/vis.c @@ -584,12 +584,10 @@ void action_do(Vis *vis, Action *a) { } else if (a->op == &vis_operators[VIS_OP_REPLACE]) { vis_mode_switch(vis, VIS_MODE_REPLACE); } else if (a->op == &vis_operators[VIS_OP_FILTER]) { - if (a->arg.s) { - vis_mode_switch(vis, VIS_MODE_NORMAL); + if (a->arg.s) vis_cmd(vis, a->arg.s); - } else { + else vis_prompt_show(vis, ":|"); - } } else if (vis->mode == &vis_modes[VIS_MODE_OPERATOR_PENDING]) { mode_set(vis, vis->mode_prev); } else if (vis->mode->visual) { -- cgit v1.2.3