mirror of
				https://github.com/zsh-users/zsh-autosuggestions.git
				synced 2025-10-23 15:16:27 +08:00 
			
		
		
		
	cleanup: Use + param expansion flag in arithmetic context
				
					
				
			This commit is contained in:
		
							parent
							
								
									4cd210b70d
								
							
						
					
					
						commit
						d8ba53678e
					
				| @ -95,7 +95,7 @@ _zsh_autosuggest_modify() { | ||||
| 
 | ||||
| # Fetch a new suggestion based on what's currently in the buffer | ||||
| _zsh_autosuggest_fetch() { | ||||
| 	if [[ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]]; then | ||||
| 	if (( ${+ZSH_AUTOSUGGEST_USE_ASYNC} )); then | ||||
| 		_zsh_autosuggest_async_request "$BUFFER" | ||||
| 	else | ||||
| 		local suggestion | ||||
|  | ||||
| @ -366,7 +366,7 @@ _zsh_autosuggest_modify() { | ||||
| 
 | ||||
| # Fetch a new suggestion based on what's currently in the buffer | ||||
| _zsh_autosuggest_fetch() { | ||||
| 	if [[ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]]; then | ||||
| 	if (( ${+ZSH_AUTOSUGGEST_USE_ASYNC} )); then | ||||
| 		_zsh_autosuggest_async_request "$BUFFER" | ||||
| 	else | ||||
| 		local suggestion | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Eric Freese
						Eric Freese