1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

28799: lexical analyser didn't stop early enough with completion words

This commit is contained in:
Peter Stephenson 2011-02-24 13:48:47 +00:00
parent 4bfb5daa7e
commit 655370ff3c
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2011-02-24 Peter Stephenson <pws@csr.com>
* 28799: Src/lex.c: fix bug introduced with lexflags
that lexical analyser didn't stop quickly enough when
retrieving completion words.
2011-02-23 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 28795: Src/exec.c: tweak to 28791 for forked shells.
@ -14253,5 +14259,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5207 $
* $Revision: 1.5208 $
*****************************************************

View file

@ -1825,7 +1825,7 @@ exalias(void)
int zp = lexflags;
gotword();
if (zp == 1 && !lexflags) {
if ((zp & LEXFLAGS_ZLE) && !lexflags) {
if (zshlextext == copy)
zshlextext = tokstr;
return 0;