mirror of
				https://github.com/zsh-users/zsh-autosuggestions.git
				synced 2025-10-23 15:16:27 +08:00 
			
		
		
		
	Call original accept-line widget when executing suggestion
This commit is contained in:
		
							parent
							
								
									aa597eea6d
								
							
						
					
					
						commit
						8c3fdea75d
					
				| @ -55,7 +55,9 @@ _zsh_autosuggest_execute() { | |||||||
| 	# Remove the suggestion | 	# Remove the suggestion | ||||||
| 	unset POSTDISPLAY | 	unset POSTDISPLAY | ||||||
| 
 | 
 | ||||||
| 	zle .accept-line | 	# Call the original `accept-line` to handle syntax highlighting or | ||||||
|  | 	# other potential custom behavior | ||||||
|  | 	_zsh_autosuggest_invoke_original_widget "accept-line" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # Partially accept the suggestion | # Partially accept the suggestion | ||||||
|  | |||||||
| @ -266,7 +266,9 @@ _zsh_autosuggest_execute() { | |||||||
| 	# Remove the suggestion | 	# Remove the suggestion | ||||||
| 	unset POSTDISPLAY | 	unset POSTDISPLAY | ||||||
| 
 | 
 | ||||||
| 	zle .accept-line | 	# Call the original `accept-line` to handle syntax highlighting or | ||||||
|  | 	# other potential custom behavior | ||||||
|  | 	_zsh_autosuggest_invoke_original_widget "accept-line" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # Partially accept the suggestion | # Partially accept the suggestion | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Eric Freese
						Eric Freese