mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	avoid reporting the same ->state more than once (11678)
This commit is contained in:
		
							parent
							
								
									64d9b83105
								
							
						
					
					
						commit
						3beeb8a6fd
					
				
					 2 changed files with 17 additions and 9 deletions
				
			
		|  | @ -223,15 +223,18 @@ if (( $# )) && comparguments -i "$autod" "$@"; then | |||
|           fi | ||||
| 
 | ||||
|           if [[ "$action" = -\>* ]]; then | ||||
|             comparguments -W line opt_args | ||||
|             state=( "$state[@]" "${${action[3,-1]##[ 	]#}%%[ 	]#}" ) | ||||
| 	    if [[ -n "$usecc" ]]; then | ||||
| 	      curcontext="${oldcontext%:*}:$subc" | ||||
| 	    else | ||||
| 	      context=( "$context[@]" "$subc" ) | ||||
| 	    fi | ||||
|             compstate[restore]='' | ||||
|             aret=yes | ||||
| 	    action="${${action[3,-1]##[ 	]#}%%[ 	]#}" | ||||
| 	    if (( ! $state[(I)$action] )); then | ||||
|               comparguments -W line opt_args | ||||
|               state=( "$state[@]" "$action" ) | ||||
| 	      if [[ -n "$usecc" ]]; then | ||||
| 	        curcontext="${oldcontext%:*}:$subc" | ||||
| 	      else | ||||
| 	        context=( "$context[@]" "$subc" ) | ||||
| 	      fi | ||||
|               compstate[restore]='' | ||||
|               aret=yes | ||||
|             fi | ||||
|           else | ||||
|             if [[ -z "$local" ]]; then | ||||
|               local line | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue