summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-08-05 15:44:18 +0200
committerOliver Kiddle <opk@zsh.org>2015-08-05 15:44:18 +0200
commit8bbfbfebbc13e9bd2165aba94a681aadc6b8566b (patch)
tree08ebe09b3c7c75573ef55cebbefb548f0c33e45a
parent32669e77f4c43dead3cbde9d7c76bf4ef2c9382c (diff)
downloadzsh-8bbfbfebbc13e9bd2165aba94a681aadc6b8566b.tar.gz
zsh-8bbfbfebbc13e9bd2165aba94a681aadc6b8566b.tar.xz
zsh-8bbfbfebbc13e9bd2165aba94a681aadc6b8566b.zip
unposted (c.f. Bart: 35902): use - after zle -U in case $key is -
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Zle/incremental-complete-word2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a135c650a..65c9153d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-05  Oliver Kiddle <opk@zsh.org>
+
+	* unposted (c.f. 35902): Functions/Zle/incremental-complete-word:
+	use - after zle -U in case $key starts with -
+
 2015-08-04  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* unposted: Src/builtin.c: Typo fix.
diff --git a/Functions/Zle/incremental-complete-word b/Functions/Zle/incremental-complete-word
index 67a9d4744..ccc007543 100644
--- a/Functions/Zle/incremental-complete-word
+++ b/Functions/Zle/incremental-complete-word
@@ -69,7 +69,7 @@ incremental-complete-word() {
            '#key' -ne '#\\C-g' ]]; do
     twid=$wid
     if [[ "$key" = ${~stop} ]]; then
-      zle -U "$key"
+      zle -U - "$key"
       return
     elif [[ "$key" = ${~brk} ]]; then
       return