Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH 2/2] add-zle-hook-widget: Add a missing arithmetic evaluation to the new index's computation.



Daniel Shahaf wrote on Fri, 12 Oct 2018 13:40 +0000:
> +++ b/Functions/Misc/add-zle-hook-widget
> @@ -152,7 +152,7 @@ function add-zle-hook-widget {
> -	    i=${${(On@)${(@M)extant_hooks[@]#<->:}%:}[i]:-0}+1
> +	    (( i = ${${(On@)${(@M)extant_hooks[@]#<->:}%:}[i]:-0} + 1 ))

Never mind, Matthew just pointed out to me that the code was correct
as is (assigning to integers implicitly does evaluation).  I'll skip
this patch.



Messages sorted by: Reverse Date, Date, Thread, Author