From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: completions for su and implicit fg/bg
Date: Mon, 12 Jul 1999 14:11:29 +0200 (MET DST) [thread overview]
Message-ID: <199907121211.OAA18745@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Mon, 12 Jul 1999 13:27:07 +0200
Peter Stephenson wrote:
> Just trying compset -q to enhance completion for *sh -c:
>
> The word
> currently being completed is split in separate words at the spaces. The
> resulting words are stored in the tt(words) array, and tt(PREFIX),
> tt(SUFFIX), tt(QIPREFIX), and tt(QISUFFIX) are modified to reflect the
> word part that is completed.
>
> What doesn't seem to get updated is CURRENT, which for consistency ought to
> point into the $words array as modified.
Whoa. Ahem.
This also corrects the test to decide if the ignored prefix/suffix
should be quoted or not.
Bye
Sven
diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c Fri Jul 9 15:48:20 1999
+++ Src/Zle/zle_tricky.c Mon Jul 12 14:07:18 1999
@@ -5172,7 +5172,7 @@
compisuffix = ztrdup("");
zsfree(compqiprefix);
zsfree(compqisuffix);
- if (instring) {
+ if (ois) {
compqiprefix = qp;
compqisuffix = qs;
} else {
@@ -5188,6 +5188,7 @@
p = compwords[i] = (char *) getdata(n);
untokenize(p);
}
+ compcurrent = cur + 1;
compwords[i] = NULL;
}
autoq = oaq;
diff -u od/Zsh/compwid.yo Doc/Zsh/compwid.yo
--- od/Zsh/compwid.yo Mon Jul 12 10:21:21 1999
+++ Doc/Zsh/compwid.yo Mon Jul 12 14:10:11 1999
@@ -622,9 +622,9 @@
item(tt(-q))(
The word
currently being completed is split in separate words at the spaces. The
-resulting words are stored in the tt(words) array, and tt(PREFIX),
-tt(SUFFIX), tt(QIPREFIX), and tt(QISUFFIX) are modified to reflect the
-word part that is completed.
+resulting words are stored in the tt(words) array, and tt(CURRENT),
+tt(PREFIX), tt(SUFFIX), tt(QIPREFIX), and tt(QISUFFIX) are modified to
+reflect the word part that is completed.
)
enditem()
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-07-12 12:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-12 12:11 Sven Wischnowsky [this message]
1999-07-12 14:29 ` Peter Stephenson
-- strict thread matches above, loose matches on Subject: below --
1999-07-19 13:58 Sven Wischnowsky
1999-07-19 13:38 ` Peter Stephenson
1999-07-13 9:02 Sven Wischnowsky
1999-07-12 10:39 Sven Wischnowsky
1999-07-12 11:27 ` Peter Stephenson
1999-07-09 13:47 Sven Wischnowsky
1999-07-09 10:44 Sven Wischnowsky
1999-07-09 12:34 ` Peter Stephenson
[not found] ` <3785FAFB.3E9FDD41@thoth.u-net.com>
1999-07-09 13:53 ` Oliver Kiddle
1999-07-09 14:47 ` Peter Stephenson
1999-07-09 15:53 ` Oliver Kiddle
1999-07-09 10:23 Oliver Kiddle
1999-07-09 10:04 ` Peter Stephenson
1999-07-09 10:40 ` Andrej Borsenkow
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=199907121211.OAA18745@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/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).