about summary refs log tree commit diff
path: root/Src/text.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-01-04 14:45:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-01-04 14:45:39 +0000
commit7d9ead9a469792959c90ec1df091e2e10b9fc11d (patch)
tree69b972644b43fa4ff6fb3dc3146c0ae6987334a4 /Src/text.c
parente3d69e9b3656ce779d9cb3cd52a1a4dcb752a635 (diff)
downloadzsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar.gz
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar.xz
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.zip
24356: regex =~ test wasnt handled by gettext()
Diffstat (limited to 'Src/text.c')
-rw-r--r--Src/text.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/text.c b/Src/text.c
index 595ebc346..593c25776 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -732,7 +732,8 @@ gettext2(Estate state)
 			    taddstr(" ");
 			    taddstr(ecgetstr(state, EC_NODUP, NULL));
 			    if (ctype == COND_STREQ ||
-				ctype == COND_STRNEQ)
+				ctype == COND_STRNEQ ||
+				ctype == COND_REGEX)
 				state->pc++;
 			} else {
 			    /* Unary test: `-f foo' etc. */