diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-01 22:05:03 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-01 22:05:03 +0000 |
| commit | 7f03c3d851c571d86d18c701d882c13ad5d06c6c (patch) | |
| tree | 17edf1709daf6247f505f82d12bbd5c67fa69906 /Src/text.c | |
| parent | unposted: typo in widget name in contrib doc (diff) | |
| download | zsh-7f03c3d851c571d86d18c701d882c13ad5d06c6c.tar zsh-7f03c3d851c571d86d18c701d882c13ad5d06c6c.tar.gz zsh-7f03c3d851c571d86d18c701d882c13ad5d06c6c.tar.bz2 zsh-7f03c3d851c571d86d18c701d882c13ad5d06c6c.tar.lz zsh-7f03c3d851c571d86d18c701d882c13ad5d06c6c.tar.xz zsh-7f03c3d851c571d86d18c701d882c13ad5d06c6c.tar.zst zsh-7f03c3d851c571d86d18c701d882c13ad5d06c6c.zip | |
23375: Phil Pennock: =~, zsh/regex etc. etc.
Diffstat (limited to 'Src/text.c')
| -rw-r--r-- | Src/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/text.c b/Src/text.c index 03ce59cf7..595ebc346 100644 --- a/Src/text.c +++ b/Src/text.c @@ -640,7 +640,7 @@ gettext2(Estate state) { static char *c1[] = { "=", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq", - "-ne", "-lt", "-gt", "-le", "-ge" + "-ne", "-lt", "-gt", "-le", "-ge", "=~" }; int ctype; @@ -724,7 +724,7 @@ gettext2(Estate state) } break; default: - if (ctype <= COND_GE) { + if (ctype < COND_MOD) { /* Binary test: `a = b' etc. */ taddstr(ecgetstr(state, EC_NODUP, NULL)); taddstr(" "); |
