From 8e27737bd4e9ff1c275a0cb439bfe2280ffa3f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 8 Dec 2017 10:54:20 +0100 Subject: vis: let behave as if only one selection exists This should allow the :-command prompt to be closed with (from insert mode) or (from normal mode). Fix #608 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index a41c253..db2ca28 100644 --- a/main.c +++ b/main.c @@ -1484,7 +1484,7 @@ static const char *selections_remove_column(Vis *vis, const char *keys, const Ar if (column >= max) column = max - 1; if (view_selections_count(view) == 1) { - vis_mode_switch(vis, VIS_MODE_NORMAL); + vis_keys_feed(vis, ""); return keys; } -- cgit v1.2.3