diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-23 13:50:09 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-23 13:50:09 +0000 |
commit | d9137fd4b6031f0d1640b31779b41dbf742df18d (patch) | |
tree | 5daee43fbc9b10d74d8e4c7b2ce953f0be02c7b9 /Src/Zle/zle_tricky.c | |
parent | 23f6fa7244c24f56b00c1eba2dab0c0178662e18 (diff) | |
download | zsh-d9137fd4b6031f0d1640b31779b41dbf742df18d.tar.gz zsh-d9137fd4b6031f0d1640b31779b41dbf742df18d.tar.xz zsh-d9137fd4b6031f0d1640b31779b41dbf742df18d.zip |
20854: more Unicode stuff.
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 620f615a2..7d4fbd641 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -163,8 +163,8 @@ usetab(void) if (keybuf[0] != '\t' || keybuf[1]) return 0; - for (; s >= zleline && *s != ZLENL; s--) - if (*s != ZLETAB && *s != ZLESPC) + for (; s >= zleline && *s != ZWC('\n'); s--) + if (*s != ZWC('\t') && *s != ZWC(' ')) return 0; if (compfunc) { wouldinstab = 1; @@ -582,6 +582,15 @@ docomplete(int lst) active = 0; return 0; } + + /* + * TODO: metafy_line() currently tries to metafy in place. + * For ZLE_UNICODE_SUPPORT we need to metafy into a separate + * string, replacing all use of zleline, zlecs and zlell here + * with those values, then restoring at the end. + * + * The alternative is probably too horrendous to contemplate. + */ metafy_line(); ocs = zlecs; |