aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-16 15:00:09 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-16 15:00:09 +0100
commitd58c355d2fff2cf78af1ac1cdd4a6299b16aba43 (patch)
tree8fff7afedfac05a5d578317a3f49def1f15f4d05 /vis-cmds.c
parentd866258cdb765ab0b377d4bc3f7c447f184e1dab (diff)
downloadvis-d58c355d2fff2cf78af1ac1cdd4a6299b16aba43.tar.gz
vis-d58c355d2fff2cf78af1ac1cdd4a6299b16aba43.tar.xz
vis: move selected prompt entry to end of the file
Close #70
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index c6a1009..748b5c9 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -1158,7 +1158,7 @@ bool vis_cmd(Vis *vis, const char *cmdline) {
char *s = param;
const char *argv[32] = { name };
for (int i = 1; i < LENGTH(argv); i++) {
- while (s && *s && *s == ' ')
+ while (s && isspace((unsigned char)*s))
s++;
if (s && !*s)
s = NULL;