zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-workers@sunsite.dk
Subject: Re: gripes
Date: Mon, 7 Jan 2002 15:40:52 +0100	[thread overview]
Message-ID: <15417.45940.512495.224934@wischnow.berkom.de> (raw)
In-Reply-To: <20011214215105.GA24236@dman.com>


Clint Adams wrote:

> ...
> 
> Also, this is from a user:
> 
> -----------------
> I set:
> 	setopt nomenucomplete bashautolist noautomenu
> but, after pressing TAB a few times, it still starts cycling.
> Also, there does not appear to be an option to put the cursor below the
> listed possible completions. These abberations are especially annoying
> for people who are addicted to bash's tab-completion but would like to
> switch to zsh for its more advanced feature-set.
> 
> ------------------
> 
> I assume that he is using the new completion system, since it does start
> cycling even if the options are set as he says.

Yep. This was never easy. The patch below fixes it for me. It isn't
nice (because it tests the AUTO_MENU option), but the whole logic of
it is getting too complicated for me.

Bye
  Sven

Index: Src/Zle/compcore.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compcore.c,v
retrieving revision 1.51
diff -u -r1.51 compcore.c
--- Src/Zle/compcore.c	2001/10/09 09:50:21	1.51
+++ Src/Zle/compcore.c	2002/01/07 14:41:46
@@ -842,7 +842,8 @@
 	}
 	startauto = ((compinsert &&
 		      !strcmp(compinsert, "automenu-unambiguous")) ||
-		     (bashlistfirst && (!compinsert || !*compinsert)));
+		     (bashlistfirst && isset(AUTOMENU) &&
+                      (!compinsert || !*compinsert)));
 	useexact = (compexact && !strcmp(compexact, "accept"));
 
 	if (!comptoend || !*comptoend)

-- 
Sven Wischnowsky                           wischnow@berkom.de


      parent reply	other threads:[~2002-01-07 14:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-14 21:51 gripes Clint Adams
2001-12-14 22:15 ` gripes Bart Schaefer
2001-12-16 20:50   ` PATCH: remove duplicate array values in parameter expansion Clint Adams
2001-12-16 21:05     ` Clint Adams
2001-12-16 22:58     ` Zefram
2001-12-17  1:12       ` Clint Adams
2001-12-17  4:24     ` Bart Schaefer
2001-12-17 14:03       ` Clint Adams
2002-01-07 14:40 ` Sven Wischnowsky [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=15417.45940.512495.224934@wischnow.berkom.de \
    --to=wischnow@berkom.de \
    --cc=zsh-workers@sunsite.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).