add # symbol to escape characters

This commit is contained in:
Stanislav Seletskiy 2016-04-20 18:46:39 +06:00
parent 87facd9b85
commit 7fe53364b2

View file

@ -339,7 +339,7 @@ _zsh_autosuggest_escape_command() {
setopt localoptions EXTENDED_GLOB
# Escape special chars in the string (requires EXTENDED_GLOB)
echo -E "${1//(#m)[\\()\[\]|*?]/\\$MATCH}"
echo -E "${1//(#m)[\\()\[\]|*?#]/\\$MATCH}"
}
# Get the previously executed command