aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
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;
}