zsh: abk, don't match everything between . and | and thus make it work after e.g. /
authorBernhard Tittelbach <bernhard@tittelbach.org>
Thu, 28 Feb 2013 19:10:15 +0000 (20:10 +0100)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Thu, 28 Feb 2013 19:10:15 +0000 (20:10 +0100)
etc/zsh/zshrc

index 0cff920..bec03d4 100644 (file)
@@ -946,8 +946,7 @@ zleiab() {
         return 0
     fi
 
-    matched_chars='[.-|_a-zA-Z0-9]#'
-    LBUFFER=${LBUFFER%%(#m)[.-|_a-zA-Z0-9]#}
+    LBUFFER=${LBUFFER%%(#m)[.\-+:|_a-zA-Z0-9]#}
     LBUFFER+=${abk[$MATCH]:-$MATCH}
 }