mirror of
				https://github.com/zsh-users/zsh-autosuggestions.git
				synced 2025-10-30 15:26:29 +08:00 
			
		
		
		
	add # symbol to escape characters
This commit is contained in:
		
							parent
							
								
									87facd9b85
								
							
						
					
					
						commit
						58c9390e38
					
				| @ -17,7 +17,7 @@ _zsh_autosuggest_escape_command() { | |||||||
| 	setopt localoptions EXTENDED_GLOB | 	setopt localoptions EXTENDED_GLOB | ||||||
| 
 | 
 | ||||||
| 	# Escape special chars in the string (requires EXTENDED_GLOB) | 	# Escape special chars in the string (requires EXTENDED_GLOB) | ||||||
| 	echo -E "${1//(#m)[\\()\[\]|*?]/\\$MATCH}" | 	echo -E "${1//(#m)[\\()\[\]|*?#]/\\$MATCH}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # Get the previously executed command | # Get the previously executed command | ||||||
|  | |||||||
| @ -339,7 +339,7 @@ _zsh_autosuggest_escape_command() { | |||||||
| 	setopt localoptions EXTENDED_GLOB | 	setopt localoptions EXTENDED_GLOB | ||||||
| 
 | 
 | ||||||
| 	# Escape special chars in the string (requires EXTENDED_GLOB) | 	# Escape special chars in the string (requires EXTENDED_GLOB) | ||||||
| 	echo -E "${1//(#m)[\\()\[\]|*?]/\\$MATCH}" | 	echo -E "${1//(#m)[\\()\[\]|*?#]/\\$MATCH}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # Get the previously executed command | # Get the previously executed command | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Stanislav Seletskiy
						Stanislav Seletskiy