Merge remote-tracking branch 'origin/github/pr/82'
authorMichael Prokop <mika@grml.org>
Wed, 21 Aug 2019 13:54:31 +0000 (15:54 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 21 Aug 2019 13:54:31 +0000 (15:54 +0200)
etc/zsh/zshrc

index 54e0649..afb0a56 100644 (file)
@@ -2269,6 +2269,7 @@ grml_theme_add_token: Token `%s'\'' exists! Giving up!\n\n' $name
         return 2
     fi
     if (( init )); then
+        REPLY=''
         $token $name
         token=$REPLY
     fi
@@ -2314,6 +2315,7 @@ function grml_prompt_addto () {
         zstyle -s ":prompt:${grmltheme}:${lr}:items:$it" token new \
             || new=${grml_prompt_token_default[$it]}
         if (( ${+grml_prompt_token_function[$it]} )); then
+            REPLY=''
             ${grml_prompt_token_function[$it]} $it
         else
             case $it in