vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 55c011b257dfe9fcdec5e7fced61cf0d4bfcec71 parent c43248a0467148ebe8e1c4dca3eaf8b6e47de1cf Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 28 Nov 2015 19:30:38 +0100 vis: do not switch to normal mode when leaving ? and / prompt Diffstat:
| M | vis.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis.c b/vis.c @@ -1326,7 +1326,7 @@ void vis_prompt_enter(Vis *vis) { * on vis->win. */ mode_set(vis, vis->mode_before_prompt); - if (s && *s && prompt_cmd(vis, vis->prompt_type, s) && vis->running) + if (s && *s && prompt_cmd(vis, vis->prompt_type, s) && vis->prompt_type == ':') vis_mode_switch(vis, VIS_MODE_NORMAL); free(s); vis_draw(vis);