diff options
Diffstat (limited to 'src/main/completion.c')
| -rw-r--r-- | src/main/completion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/completion.c b/src/main/completion.c index acf7a78..4735c87 100644 --- a/src/main/completion.c +++ b/src/main/completion.c @@ -456,7 +456,7 @@ static uint32_t complete_path(struct completion_context ctx, void *userdata) { // check the input path here since // to_abspath removes trailing slashes - if (path[inlen - 1] != '/') { + if (inlen == 0 || path[inlen - 1] != '/') { dir = dirname(p1); file = basename(p2); } |
