From b5e1000a37ce5504fec29d6788b6ec3a8353e40f Mon Sep 17 00:00:00 2001 From: Matthew Turney Date: Wed, 5 Nov 2014 08:18:28 -0600 Subject: [PATCH] Updated to latest version Latest version of git-escape magic now escapes the @ shortcut for HEAD. --- plugins/git-escape-magic/git-escape-magic | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/git-escape-magic/git-escape-magic b/plugins/git-escape-magic/git-escape-magic index e148d7c0..94a8d7b0 100644 --- a/plugins/git-escape-magic/git-escape-magic +++ b/plugins/git-escape-magic/git-escape-magic @@ -2,7 +2,7 @@ # # git-escape-magic - zle tweak for git command line arguments # -# Copyright (c) 2011, 2012 Akinori MUSHA +# Copyright (c) 2011, 2012, 2014 Akinori MUSHA # Licensed under the 2-clause BSD license. # # This tweak eliminates the need for manually escaping shell @@ -81,9 +81,7 @@ git-escape-magic.self-insert() { [[ $words[(i)--] -gt $#words ]] ;; esac && case "${words[-1]%%"$KEYS"}" in - (*@) - [[ "$KEYS" == \{* ]] ;; - (*\^) + (*[@^]) [[ "$KEYS" == [{~^]* ]] ;; (*[@^]\{[^}]##) [[ "$KEYS" == \}* ]] ;; @@ -134,3 +132,4 @@ git-escape-magic() { } [[ -o kshautoload ]] || git-escape-magic "$@" +