diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/Zle/complete.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index a700af11e..3173102f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-04-27 Sven Wischnowsky <wischnow@informatik.hu-berlin.de> + * 10963: Src/Zle/complete.c: fix for parse error with + left-anchored patterns + * 10961: Src/Zle/complist.c: make menu-selection handle undefined-key diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index 25a33b9cb..7a15eb077 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -221,7 +221,7 @@ parse_cmatcher(char *name, char *s) if (err) return pcm_err; - if ((both = (*s == '|'))) + if ((both = (*s && s[1] == '|'))) s++; if (!*s || !*++s) { |