From 817179a8ad182e22b0aecf883926982743e0f26b Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 5 Apr 2010 14:59:11 +0200 Subject: [PATCH] zsh/rc: Handle whitespace/quotes correctly when aborting commands. --- zsh/rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zsh/rc b/zsh/rc index ef32525..6fcc820 100644 --- a/zsh/rc +++ b/zsh/rc @@ -417,10 +417,12 @@ zstyle ':completion:*:(hg|git)*:*' ignore-line yes # typing the command. # # Thanks to Vadim Zeitlin for a fix (--) so lines -# starting with - don't cause errors. +# starting with - don't cause errors; and to Nadav Har'El +# for a fix (-r) to handle whitespace/quotes +# correctly, both on the Zsh mailing list. TRAPINT() { # Store the current buffer in the history. - zle && print -s -- $BUFFER + zle && print -s -r -- $BUFFER # Return the default exit code so Zsh aborts the current command. return $1 -- 2.45.2