zsh-users
 help / color / mirror / code / Atom feed
* Completion bug with zsh 3.1.4? (-S '')
@ 1998-07-09  9:04 Vincent Lefevre
  1998-07-09 16:30 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Lefevre @ 1998-07-09  9:04 UTC (permalink / raw)
  To: zsh-users

In a completion, -S '' doesn't work any longer (with zsh 3.1.4).
It behaves as if there were no -S ''.

With zsh 3.0.5, it was OK.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Completion bug with zsh 3.1.4? (-S '')
  1998-07-09  9:04 Completion bug with zsh 3.1.4? (-S '') Vincent Lefevre
@ 1998-07-09 16:30 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1998-07-09 16:30 UTC (permalink / raw)
  To: Vincent Lefevre, zsh-users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-07-09 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-09  9:04 Completion bug with zsh 3.1.4? (-S '') Vincent Lefevre
1998-07-09 16:30 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).