diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_thingy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c index 3963d7eaf..ba89e00a8 100644 --- a/Src/Zle/zle_thingy.c +++ b/Src/Zle/zle_thingy.c @@ -628,6 +628,7 @@ bin_zle_complete(char *name, char **args, UNUSED(Options ops), UNUSED(char func) static int bin_zle_flags(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) { + int ret = 0; char **flag; if (!zle_usable()) { @@ -655,11 +656,14 @@ bin_zle_flags(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) else if (!strcmp(*flag, "keepsuffix")) w->flags |= ZLE_KEEPSUFFIX; */ - else + else { zwarnnam(name, "invalid flag `%s' given to zle -f", *flag); + ret = 1; + } } } } + return ret; } /**/ |