diff options
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 778305d18..f59823f0b 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -2332,9 +2332,19 @@ magicspace(char **args) bangq += 2) if (bangq[1] == '"' && (bangq == (char *)zleline || bangq[-1] != '\\')) break; +#ifdef ZLE_UNICODE_SUPPORT + /* + * TODO: expansion and completion with Unicode are currently + * fundamentally broken. Most of the code for this hasn't been + * commented out, but crashing the shell just because you entered + * a space seems to be worth guarding against. + */ + ret = selfinsert(args); +#else if (!(ret = selfinsert(args)) && (!bangq || bangq + 2 > (char *)zleline + zlecs)) doexpandhist(); +#endif return ret; } |