Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 2/2] add-zle-hook-widget: Add a missing arithmetic evaluation to the new index's computation.
- X-seq: zsh-workers 43684
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 2/2] add-zle-hook-widget: Add a missing arithmetic evaluation to the new index's computation.
- Date: Fri, 12 Oct 2018 13:40:37 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=from:to:subject:date:message-id :in-reply-to:references; s=fm1; bh=MzQkfDn7MwIFbjsoJ6FvV9JyAYXvT jwy5NwU/B++KTs=; b=Z66icTZMfU3o4rcGx8rX+PTBp5n6dAWpg+jYJehDe9kFA ID5HcT6DSkJsLVZWKHVbcSnLjzU3y4zZsDWjufLBoGQfFALM47UjWBLEGg/4SohQ O6d6UKYMCvQHj2pMx/dgnbydcs9Yraz2CFGLhOtlLAm5h4XVMbaaZJEuTaOPX1XK V8CjAuK6Ttk/j35mSvtDjWorPnsoN6H0hespJk+p4CFn/FEYnoAi90GVR0/f3yl8 yq+WAg2ztayElpYd9LM9rHtbLA057B6wFDghHZJmcXIbJsiw9Y8hEDpZEGi28YLW RidhRLzKB+B6Qa3nVfbRrFdACIZ3x7GsliqS045rw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=MzQkfDn7MwIFbjsoJ6FvV9JyAYXvT jwy5NwU/B++KTs=; b=sFEBkFzWvjP4hSSjjWcR2pU2sQrMlfZHFxoG4M7ngZNbg lFEHMxI9ILi4duObOu88vAgNrlYz5QLs571K0HfSG1KdagsJDKp4U0NG/DQsQ8zC XV68VSPnulaQUquKm3UUZoU9GuLc14zYKygQI3HNXQlzFZJgeLi11Bx5x0kWEAJw EhDnTgQniZ8Md/2iHngX4nEskDhURP4C9MUfe1GgqrvxJCv5DupTQAo0UmYB/iju 5D+k4HiOfSlaAYXy/kjlDKmAMrCYnFStzkdqLjIwLfi3Z8AWyHbPMkXWD4xV/H4C mNqUa62H9MhZAFhf7+3jxx2HecoLJQJIQkwEdlk6w==
- In-reply-to: <20181012134037.16689-1-danielsh@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20181012134037.16689-1-danielsh@tarpaulin.shahaf.local2>
---
Functions/Misc/add-zle-hook-widget | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Functions/Misc/add-zle-hook-widget b/Functions/Misc/add-zle-hook-widget
index 9cc35496f..121cf0349 100644
--- a/Functions/Misc/add-zle-hook-widget
+++ b/Functions/Misc/add-zle-hook-widget
@@ -152,7 +152,7 @@ function add-zle-hook-widget {
if [[ -z ${(M)extant_hooks[@]:#(<->:|)$fn} ]]; then
# no index and not already hooked
# assign largest existing index plus 1
- i=${${(On@)${(@M)extant_hooks[@]#<->:}%:}[i]:-0}+1
+ (( i = ${${(On@)${(@M)extant_hooks[@]#<->:}%:}[i]:-0} + 1 ))
else
return 0
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author