mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-04-17 11:35:31 +08:00
Merge 58c9390e38
into 87facd9b85
This commit is contained in:
commit
0a170f5479
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user