zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr>, zsh-users@math.gatech.edu
Subject: Re: Completion bug with zsh 3.1.4? (-S '')
Date: Thu, 9 Jul 1998 09:30:10 -0700	[thread overview]
Message-ID: <980709093010.ZM14181@candle.brasslantern.com> (raw)
In-Reply-To: <19980709110457.A8279@ens-lyon.fr>

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


      reply	other threads:[~1998-07-09 16:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-09  9:04 Vincent Lefevre
1998-07-09 16:30 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=980709093010.ZM14181@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=Vincent.Lefevre@ens-lyon.fr \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).