From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re: Bug in completing named dirs (pws-3)?
Date: Thu, 17 Dec 1998 10:16:58 +0100 (MET) [thread overview]
Message-ID: <199812170916.KAA06674@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Phil Pennock's message of Tue, 15 Dec 1998 15:04:50 +0000
Phil Pennock wrote:
>
> Using 3.1.5-pws-3, there seems to be something curious with named dirs
> completion. Tab completion removes the tilde.
And the same for completion after `='. Below is the fix (I forgot to
put ic in ipre ;-).
Bye
Sven
P.S.: ic is the `ignored character' known from older versions, ipre is
the `ignored prefix' added for the or'ing stuff.
diff -c os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
*** os/Zle/zle_tricky.c Wed Dec 16 11:48:23 1998
--- Src/Zle/zle_tricky.c Thu Dec 17 10:12:05 1998
***************
*** 3801,3815 ****
/* Completion after `~', maketildelist adds the usernames *
* and named directories. */
! if (ic == Tilde)
maketildelist();
! else if (ic == Equals) {
/* Completion after `=', get the command names from *
* the cmdnamtab and aliases from aliastab. */
if (isset(HASHLISTALL))
cmdnamtab->filltable(cmdnamtab);
dumphashtable(cmdnamtab, -7);
dumphashtable(aliastab, -2);
} else {
/* Normal file completion... */
if (ispattern & 1) {
--- 3801,3823 ----
/* Completion after `~', maketildelist adds the usernames *
* and named directories. */
! if (ic == Tilde) {
! char *oi = ipre;
!
! ipre = (ipre ? dyncat("~", ipre) : "~");
maketildelist();
! ipre = oi;
! } else if (ic == Equals) {
/* Completion after `=', get the command names from *
* the cmdnamtab and aliases from aliastab. */
+ char *oi = ipre;
+
+ ipre = (ipre ? dyncat("=", ipre) : "=");
if (isset(HASHLISTALL))
cmdnamtab->filltable(cmdnamtab);
dumphashtable(cmdnamtab, -7);
dumphashtable(aliastab, -2);
+ ipre = oi;
} else {
/* Normal file completion... */
if (ispattern & 1) {
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1998-12-17 9:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-17 9:16 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-12-15 15:04 Phil Pennock
1998-12-31 7:06 ` Phil Pennock
1999-01-03 21:12 ` Bart Schaefer
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=199812170916.KAA06674@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@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).