Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
expandorcompleteprefix patch
- X-seq: zsh-workers 975
- From: Michael Pitman <mp@xxxxxxxxxxxxxxxx>
- To: zsh-workers%math.gatech.edu@xxxxxxxxxx
- Subject: expandorcompleteprefix patch
- Date: Wed, 01 May 1996 12:22:46 EST
- Organization: Otis Building Technologies
- Reply-to: mp@xxxxxxxxxxxxxxxx
- Sender: mp@xxxxxxxxxxxxxxxx
Here is a very small patch to fix expand-or-complete-prefix when in automenu
mode (prob also in menucomplete mode too).
This comletion mechanism hasn't worked for a while, but I only just got around
to fixing it. No idea how to properly submit patches, so I'm just going to
send to this mailing list with the hope that it's added.
Patch applies to zsh-2.6-beta15
Bye.
_______________________________________________
Michael Pitman <mp@xxxxxxxxxxxxxxxx>
Electrical Engineer, Otis Building Technologies
diff -u zsh-2.6-beta15orig/Src/zle_tricky.c zsh-2.6-beta15/Src/zle_tricky.c
--- zsh-2.6-beta15orig/Src/zle_tricky.c Thu Apr 25 13:25:41 1996
+++ zsh-2.6-beta15/Src/zle_tricky.c Wed May 1 11:54:10 1996
@@ -4002,10 +4002,12 @@
{
/* global c is the current character typed. */
int csafe = c;
+ int menusafe = menucmp;
/* insert a space and backspace. */
c = ' ';
selfinsert(); /* insert the extra character */
+ menucmp = menusafe;
forwardchar(); /* move towards beginning */
remove_at = cs;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author