From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43684-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 0b879b87 for ; Fri, 12 Oct 2018 13:41:02 +0000 (UTC) Received: (qmail 2994 invoked by alias); 12 Oct 2018 13:40:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43684 Received: (qmail 17874 invoked by uid 1010); 12 Oct 2018 13:40:49 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.27):SA:0(-2.6/5.0):. Processed in 1.666157 secs); 12 Oct 2018 13:40:49 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-ME-Sender: X-ME-Proxy: From: Daniel Shahaf To: zsh-workers@zsh.org 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 Message-Id: <20181012134037.16689-2-danielsh@tarpaulin.shahaf.local2> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181012134037.16689-1-danielsh@tarpaulin.shahaf.local2> 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