Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#270632: zsh: Completion and spaces
- X-seq: zsh-workers 20335
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#270632: zsh: Completion and spaces
- Date: Wed, 8 Sep 2004 16:26:33 -0400
- Cc: Hugo Haas <hugo@xxxxxxxxx>, 270632-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20040908194101.GD2775@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20040908115321.GA2417@xxxxxxxxx> <20040908180950.GC25987@xxxxxxxxxxx> <20040908194101.GD2775@xxxxxxxxx>
> Oh, you're right. It's not insert-last-word which is the culprit, but
> smart-insert-last-word.
>
> I have done:
>
> autoload smart-insert-last-word
> zle -N insert-last-word smart-insert-last-word
>
> With this, you should be able to witness the problem.
Is this the correct fix?
Index: Functions/Zle/smart-insert-last-word
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Zle/smart-insert-last-word,v
retrieving revision 1.2
diff -u -r1.2 smart-insert-last-word
--- Functions/Zle/smart-insert-last-word 27 Jan 2003 16:41:17 -0000 1.2
+++ Functions/Zle/smart-insert-last-word 8 Sep 2004 20:25:14 -0000
@@ -86,5 +86,5 @@
fi
done
fi
-LBUFFER[lcursor+1,cursor+1]=$lastcmd[-NUMERIC]
+LBUFFER[lcursor+1,cursor+1]=" $lastcmd[-NUMERIC]"
_ilw_cursor=$CURSOR
Messages sorted by:
Reverse Date,
Date,
Thread,
Author