From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: PATCH: completion with redirections
Date: Fri, 22 Jan 1999 17:11:12 +0100 (MET) [thread overview]
Message-ID: <199901221611.RAA27484@beta.informatik.hu-berlin.de> (raw)
Completion always had the problem that it counted redirections
appearing in the command line as arguments if you were not completing
the string (filename) after the redirection operator itself.
The patch below tries to avoid this. It seems to work under several
circumstances. (But it looks suspiciously simple, doesn't it?)
Bye
Sven
*** os/Zle/zle_tricky.c Fri Jan 22 17:06:30 1999
--- Src/Zle/zle_tricky.c Fri Jan 22 17:06:37 1999
***************
*** 1011,1017 ****
rd = linredir;
if (inwhat == IN_NOTHING && incond)
inwhat = IN_COND;
! }
if (!tokstr)
continue;
/* Hack to allow completion after `repeat n do'. */
--- 1011,1018 ----
rd = linredir;
if (inwhat == IN_NOTHING && incond)
inwhat = IN_COND;
! } else if (linredir)
! continue;
if (!tokstr)
continue;
/* Hack to allow completion after `repeat n do'. */
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-01-22 16:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-22 16:11 Sven Wischnowsky [this message]
1999-01-22 17:11 ` Oliver Kiddle
1999-01-23 6:26 ` Bart Schaefer
1999-01-25 9:00 Sven Wischnowsky
1999-01-25 13:43 Sven Wischnowsky
1999-01-25 14:01 ` Peter Stephenson
1999-01-26 17:56 ` Bart Schaefer
1999-01-26 18:05 ` Phil Pennock
1999-01-27 8:13 Sven Wischnowsky
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=199901221611.RAA27484@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).