diff options
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 845f74bc5..72d72d54f 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -2589,7 +2589,7 @@ magicspace(char **args) * but must be ASCII, so we simply cast the pointer. */ memset(&mbs, 0, sizeof(mbs)); - if (mbrtowc(zlebangchar, (char *)&bangchar, 1, &mbs) < 0) + if (mbrtowc(zlebangchar, (char *)&bangchar, 1, &mbs) == MB_INVALID) return selfinsert(args); #else zlebangchar[0] = bangchar; |