Merge remote-tracking branch 'origin/github/pr/88'
authorMichael Prokop <mika@grml.org>
Thu, 14 Nov 2019 16:30:09 +0000 (17:30 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 14 Nov 2019 16:30:09 +0000 (17:30 +0100)
etc/zsh/zshrc

index afb0a56..0a7d730 100644 (file)
@@ -895,7 +895,7 @@ zle -N end-of-somewhere beginning-or-end-of-somewhere
 
 # add a command line to the shells history without executing it
 function commit-to-history () {
-    print -s ${(z)BUFFER}
+    print -rs ${(z)BUFFER}
     zle send-break
 }
 zle -N commit-to-history