mirror of
				https://github.com/zsh-users/zsh-autosuggestions.git
				synced 2025-10-30 15:26:29 +08:00 
			
		
		
		
	Remove unnecessary reset of POSTDISPLAy
This commit is contained in:
		
							parent
							
								
									25f4afb058
								
							
						
					
					
						commit
						a44aa59321
					
				| @ -33,8 +33,6 @@ _zsh_autosuggest_modify() { | |||||||
| 	# Add the suggestion to the POSTDISPLAY | 	# Add the suggestion to the POSTDISPLAY | ||||||
| 	if [ -n "$suggestion" ]; then | 	if [ -n "$suggestion" ]; then | ||||||
| 		POSTDISPLAY="${suggestion#$BUFFER}" | 		POSTDISPLAY="${suggestion#$BUFFER}" | ||||||
| 	else |  | ||||||
| 		unset POSTDISPLAY |  | ||||||
| 	fi | 	fi | ||||||
| 
 | 
 | ||||||
| 	return $retval | 	return $retval | ||||||
|  | |||||||
| @ -274,8 +274,6 @@ _zsh_autosuggest_modify() { | |||||||
| 	# Add the suggestion to the POSTDISPLAY | 	# Add the suggestion to the POSTDISPLAY | ||||||
| 	if [ -n "$suggestion" ]; then | 	if [ -n "$suggestion" ]; then | ||||||
| 		POSTDISPLAY="${suggestion#$BUFFER}" | 		POSTDISPLAY="${suggestion#$BUFFER}" | ||||||
| 	else |  | ||||||
| 		unset POSTDISPLAY |  | ||||||
| 	fi | 	fi | ||||||
| 
 | 
 | ||||||
| 	return $retval | 	return $retval | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Eric Freese
						Eric Freese