mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-10-31 01:55:07 +00:00 
			
		
		
		
	main: Expand paths before removing quoting
Fixes highlighting of `ls \~`. Closes #328.
This commit is contained in:
		
							parent
							
								
									6a6d40208c
								
							
						
					
					
						commit
						2411195c20
					
				| @ -923,7 +923,7 @@ _zsh_highlight_main_highlighter_expand_path() | ||||
|   # The $~1 syntax normally performs filename generation, but not when it's on the right-hand side of ${x:=y}. | ||||
|   setopt localoptions nonomatch | ||||
|   unset REPLY | ||||
|   : ${REPLY:=${(Q)~1}} | ||||
|   : ${REPLY:=${(Q)${~1}}} | ||||
| } | ||||
| 
 | ||||
| # ------------------------------------------------------------------------------------------------- | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Matthew Martin
						Matthew Martin