X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=6fcc820c9e5e2fda8064c0b3e39768939ce3ec00;hb=817179a8ad182e22b0aecf883926982743e0f26b;hp=ef32525f23f4c19cb147d40a9a70006c1ed6e340;hpb=22247354cceff65512811106f28f81861c49a62c;p=config%2Fdotfiles.git 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