about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Core/compinit4
-rw-r--r--Doc/Zsh/compsys.yo2
2 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Core/compinit b/Completion/Core/compinit
index 43c8db7e7..c2a78e99a 100644
--- a/Completion/Core/compinit
+++ b/Completion/Core/compinit
@@ -406,7 +406,7 @@ compstyle '*:options' prefix-hidden yes"
       tmp="':expand-word' ${name#expandword_} ${(qq)val}"
       ;;
     history_*)
-      tmp="'*:history-words ${name#history_} ${(qq)val}"
+      tmp="'*:history-words' ${name#history_} ${(qq)val}"
       ;;
     completer)
       tmp="'*' completer ${${(qqs.:.)val}}"
@@ -421,7 +421,7 @@ compstyle '*:options' prefix-hidden yes"
 
   eval "${style}"
 
-  print "$style" >> ${HOME}/.zsh-styles
+  print "$style" >>! ${HOME}/.zsh-styles
 }
 
 # Very simple interface for setting styles:
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index bfda8b145..7181b86b6 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1598,7 +1598,7 @@ more specific context name without havin to change and reset the
 tt(curcontext) parameter (which would otherwise have the same effect).
 )
 item(tt(_requested))(
-A function that uses t(_tags) to register tags and then calls it to
+A function that uses tt(_tags) to register tags and then calls it to
 loop over the requested sets of tags should call this function to
 check if a certain tag is currently requested. This normally has to be 
 done in a loop such as: