zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: PATCH: was Re:  REC_EXACT and AUTO_MENU, and compctl -U too (Part II)
Date: Tue, 23 Jun 1998 14:44:37 +0200 (MET DST)	[thread overview]
Message-ID: <199806231244.OAA11033@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Fri, 19 Jun 1998 11:14:59 -0700


Bart Schaefer wrote:

> 
> One thing that's annoyed me for a very long time is the interaction of
> recexact with automenu.  Suppose I have both options set.
> 
> zsh% /usr/li
> 
> The possible completions at this point are /usr/lib and /usr/libexec.  I
> press TAB (which is bound to expand-or-complete).
> 
> zsh% /usr/lib
> 
> This is not a completion; it's the unique prefix of a menu completion, or
> it would be in most circumstances.  With recexact, though, when I press
> TAB again expecting to menucomplete to libexec, I instead get /usr/lib/
> and now I can only complete within that directory.
> 
> What I'd like is to have recexact behavior when I type the entire prefix
> and automenu behavior when zsh supplies the prefix.
> 

While trying so solve this I encountered a little bug (with completeinword):

  % ls
  fooo    fooboo
  % ls fo <TAB with cursor on the 'o'>

gives:

  % ls foooo

One of the 'o's were both in the prefix and the suffix.

Bye
 Sven

*** Src/Zle/zle_tricky.c.old	Mon Jun 22 08:55:46 1998
--- Src/Zle/zle_tricky.c	Tue Jun 23 14:28:37 1998
***************
*** 1549,1554 ****
--- 1549,1555 ----
  	    *bp = test;
  	if ((test = sfxlen(*fm, s)) < *ep)
  	    *ep = test;
+ 	if (*ep + *bp > *sp) *ep = *sp - *bp;
      }
  
      /* If we are doing a glob completion we store the whole string in *


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~1998-06-23 13:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=199806231244.OAA11033@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).