mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
more zsh style code
This commit is contained in:
parent
9279eff0ad
commit
f06305c948
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ _zsh_autosuggest_strategy_predefined() {
|
|||
local prefix="${1//(#m)[\\*?[\]<>()|^~#]/\\$MATCH}"
|
||||
local result="${history[(r)${prefix}*]}"
|
||||
|
||||
if [[ $result == "" ]]; then
|
||||
if [[ -z "$result" ]]; then
|
||||
if (( ! ${+_ZSH_AUTOSUGGEST_PREDEFINE} )); then
|
||||
typeset -g _ZSH_AUTOSUGGEST_PREDEFINE=()
|
||||
local pname="$HOME/.zsh_autosuggest"
|
||||
|
|
|
@ -633,7 +633,7 @@ _zsh_autosuggest_strategy_predefined() {
|
|||
local prefix="${1//(#m)[\\*?[\]<>()|^~#]/\\$MATCH}"
|
||||
local result="${history[(r)${prefix}*]}"
|
||||
|
||||
if [[ $result == "" ]]; then
|
||||
if [[ -z "$result" ]]; then
|
||||
if (( ! ${+_ZSH_AUTOSUGGEST_PREDEFINE} )); then
|
||||
typeset -g _ZSH_AUTOSUGGEST_PREDEFINE=()
|
||||
local pname="$HOME/.zsh_autosuggest"
|
||||
|
|
Loading…
Reference in a new issue