Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion bug with zsh 3.1.4? (-S '')
- X-seq: zsh-users 1668
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Vincent Lefevre <Vincent.Lefevre@xxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Completion bug with zsh 3.1.4? (-S '')
- Date: Thu, 9 Jul 1998 09:30:10 -0700
- In-reply-to: <19980709110457.A8279@xxxxxxxxxxx>
- References: <19980709110457.A8279@xxxxxxxxxxx>
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