Skip to content

Commit

Permalink
vis: do not switch to normal mode when leaving ? and / prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Nov 28, 2015
1 parent b1c462b commit 37a8f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 37a8f9b

Please sign in to comment.