Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion bug with zsh 3.1.4? (-S '')



On Jul 9, 11:04am, Vincent Lefevre wrote:
} Subject: Completion bug with zsh 3.1.4? (-S '')
}
} In a completion, -S '' doesn't work any longer (with zsh 3.1.4).
} It behaves as if there were no -S ''.

He's right; the behavior should be to prevent a trailing space from being
appended after a completed word, but (using Misc/compctl-examples):

zsh-3.1.4> nslookup -class=  
                            ^
                            Cursor here

zsh-3.0.5> nslookup -class=
                           ^
                           Cursor here

I think the fix is this easy:

Index: zle_tricky.c
===================================================================
*** zle_tricky.c	1998/06/23 18:58:12	1.6
--- zle_tricky.c	1998/07/09 16:23:44
***************
*** 3380,3385 ****
--- 3380,3386 ----
  	    if (remsuffix && menuwe)
  		makesuffix(menuinsc);
  	}
+ 	havesuff = 1;
      } else {
  	/* There is no user-specified suffix, *
  	 * so generate one automagically.     */


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author