aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index d3f2c69..f7053aa 100644
--- a/vis.c
+++ b/vis.c
@@ -1528,6 +1528,7 @@ static bool exec_cmdline_command(char *cmdline) {
}
range = (Filerange){ .start = 0, .end = text_size(vis->win->text) };
}
+ while (*cmdstart == ' ') cmdstart++;
char *cmdend = strchr(cmdstart, ' ');
/* regex should only apply to command name */
if (cmdend)