mirror of
				https://github.com/zsh-users/zsh-autosuggestions.git
				synced 2025-10-30 15:26:29 +08:00 
			
		
		
		
	more zsh style code
This commit is contained in:
		
							parent
							
								
									9279eff0ad
								
							
						
					
					
						commit
						f06305c948
					
				@ -67,7 +67,7 @@ _zsh_autosuggest_strategy_predefined() {
 | 
				
			|||||||
    local prefix="${1//(#m)[\\*?[\]<>()|^~#]/\\$MATCH}"
 | 
					    local prefix="${1//(#m)[\\*?[\]<>()|^~#]/\\$MATCH}"
 | 
				
			||||||
    local result="${history[(r)${prefix}*]}"
 | 
					    local result="${history[(r)${prefix}*]}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if [[ $result == "" ]]; then
 | 
					    if [[ -z "$result" ]]; then
 | 
				
			||||||
        if (( ! ${+_ZSH_AUTOSUGGEST_PREDEFINE} )); then
 | 
					        if (( ! ${+_ZSH_AUTOSUGGEST_PREDEFINE} )); then
 | 
				
			||||||
            typeset -g _ZSH_AUTOSUGGEST_PREDEFINE=()
 | 
					            typeset -g _ZSH_AUTOSUGGEST_PREDEFINE=()
 | 
				
			||||||
            local pname="$HOME/.zsh_autosuggest"
 | 
					            local pname="$HOME/.zsh_autosuggest"
 | 
				
			||||||
 | 
				
			|||||||
@ -633,7 +633,7 @@ _zsh_autosuggest_strategy_predefined() {
 | 
				
			|||||||
    local prefix="${1//(#m)[\\*?[\]<>()|^~#]/\\$MATCH}"
 | 
					    local prefix="${1//(#m)[\\*?[\]<>()|^~#]/\\$MATCH}"
 | 
				
			||||||
    local result="${history[(r)${prefix}*]}"
 | 
					    local result="${history[(r)${prefix}*]}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if [[ $result == "" ]]; then
 | 
					    if [[ -z "$result" ]]; then
 | 
				
			||||||
        if (( ! ${+_ZSH_AUTOSUGGEST_PREDEFINE} )); then
 | 
					        if (( ! ${+_ZSH_AUTOSUGGEST_PREDEFINE} )); then
 | 
				
			||||||
            typeset -g _ZSH_AUTOSUGGEST_PREDEFINE=()
 | 
					            typeset -g _ZSH_AUTOSUGGEST_PREDEFINE=()
 | 
				
			||||||
            local pname="$HOME/.zsh_autosuggest"
 | 
					            local pname="$HOME/.zsh_autosuggest"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user