From 830a19f6675fc0e18934afa98fbed0b0dfd48c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 25 Sep 2014 14:50:47 +0200 Subject: Do not warn if no command is given --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 7689b30..4f59622 100644 --- a/vis.c +++ b/vis.c @@ -859,7 +859,7 @@ static void prompt_enter(const Arg *arg) { } break; case ':': - if (!exec_command(s)) + if (s && *s && !exec_command(s)) editor_info_show(vis, "Not an editor command"); break; } -- cgit v1.2.3