summary refs log tree commit diff
diff options
context:
space:
mode:
-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