zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: Approximate completion
Date: Tue, 4 Jan 2000 09:10:29 +0100 (MET)	[thread overview]
Message-ID: <200001040810.JAA22081@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Tue, 21 Dec 1999 22:34:56 +0000


Peter Stephenson wrote:

> Approximate completion seems to be be broken in some non-obvious way.  If I
> try to complete 50dc.z to 50cd.ztst, the right completion appears as an
> argument to compadd, but nothing is inserted.  Correction with ^Xc seems to
> work.  Indeed, completing 50dc.zts works, too: since I have max errors set
> to 2, this suggest that for some reason it isn't matching with a * at the
> end of the test string at some point.

No. I had to make globbing flags be treated specially lately for
functions like _path_files that use hidden prefixes. The code now
takes the flags (if they are at the beginning of $PREFIX) and moves
them after the matched prefix. But I forgot to update the cached
prefix-length after extracting the flags.

Bye
 Sven

diff -u -r oldsrc/Zle/compcore.c Src/Zle/compcore.c
--- oldsrc/Zle/compcore.c	Wed Dec 29 22:26:15 1999
+++ Src/Zle/compcore.c	Mon Jan  3 19:58:57 2000
@@ -1680,6 +1680,7 @@
 			p[1] = sav;
 
 			lpre = p + 1;
+			llpl -= gfl;
 		    }
 		}
 		s = dat->ppre ? dat->ppre : "";

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


             reply	other threads:[~2000-01-04  8:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-04  8:10 Sven Wischnowsky [this message]
2000-01-04 10:40 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=200001040810.JAA22081@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).