From 58c9390e387562c7769289d0fc09cfa144930df7 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Thu, 21 Apr 2016 03:03:33 +0600 Subject: [PATCH] add # symbol to escape characters --- src/suggestion.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/suggestion.zsh b/src/suggestion.zsh index 16f2798..dd53174 100644 --- a/src/suggestion.zsh +++ b/src/suggestion.zsh @@ -17,7 +17,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 diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 17d1eaa..874b328 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -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