Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#270632: zsh: Completion and spaces



> 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