summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/bemenu-run.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/bemenu-run.c b/client/bemenu-run.c
index 20efd77..4feacf9 100644
--- a/client/bemenu-run.c
+++ b/client/bemenu-run.c
@@ -66,6 +66,8 @@ get_paths(const char *env, const char *default_paths, struct paths *state)
if ((f = strcspn(state->path, ":")) > 0) {
state->path += f + (path[f] ? 1 : 0);
path[f] = 0;
+ } else {
+ state->path += 1;
}
if (!*path) {