File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ _zsh_autosuggest_strategy_completion() {
122
122
# versions of zsh (older than 5.3), we sometimes get extra bytes after
123
123
# the second null byte, so trim those off the end.
124
124
# See http://www.zsh.org/mla/workers/2015/msg03290.html
125
- suggestion=" ${${line #* $' \0 ' } % $' \0 ' * } "
125
+ suggestion=" ${${( @ 0)line} [2] } "
126
126
} always {
127
127
# Destroy the pty
128
128
zpty -d $ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME
Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ _zsh_autosuggest_strategy_completion() {
608
608
# versions of zsh (older than 5.3), we sometimes get extra bytes after
609
609
# the second null byte, so trim those off the end.
610
610
# See http://www.zsh.org/mla/workers/2015/msg03290.html
611
- suggestion=" ${${line #* $' \0 ' } % $' \0 ' * } "
611
+ suggestion=" ${${( @ 0)line} [2] } "
612
612
} always {
613
613
# Destroy the pty
614
614
zpty -d $ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME
You can’t perform that action at this time.
0 commit comments