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.
- X-seq: zsh-workers 43686
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH 2/2] add-zle-hook-widget: Add a missing arithmetic evaluation to the new index's computation.
- Date: Fri, 12 Oct 2018 13:43:17 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:references:subject :in-reply-to:date; s=fm1; bh=mjhKLwRhJRlOZLHLLk5iDhUNVuvsSagEu5X Lm1lsmxs=; b=BdpzXvY6eljlXGG+Y6i3YHvn/bQOHU8YOANl4uZiygTj8JTP0lC VnhyEDQo58rYBkZff6uvT4i067N+y02nwzXvrI3E6QbcaQrN+wj+GGan6K+U+3y1 5dC7lyaHmT+J//r7sHuVUCr/Jh5Wg1GajtfLRXxXAV0CkDAov6OzzfnYr1ifzYJj XHfnEcHKKcfwTHPfeAcMV83KwsNRkQtoN2y9uOi+R19WVSrDvgF2W9S5UJSTV8bq 1pONOhlszlb1FzbmziRC4fAeYY9f0aqhP6tlKiAZ+MNiD79usqFxf/JmNG9q/rDG m5m/strvPneLDp/NOyigtD/axP9qizOqEfA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=mjhKLwRhJRlOZLHLLk5iDhUNVuvsSagEu5XLm1lsm xs=; b=qzsIxMxJvp4wQ/5XqQ2Dwhr8uQcQ3kbnos7yzP9KuCuM8UB2MnR7mPsBq rjeqmErjJpkbjs1ugLKXZGTkaVpADwQ4ToqlWbH+qZDQZ2JQkJZ7Ca4xocrW2RSz 5LyELX7CrMKddV4n6Kaj8oVJnLVom3C43gvEpIOECY2UE1wW+DRq/pVrdV7rARG6 Vw1sZ8DiSvOEvgpC8IYydWCDmQEpQ7fKEltlfmYZaa6oRvmwZmc1hMpIfQQixeya Zh7ba5B8CHjpGC7PAwsthZ8j5qkRqee1zKb3txJxIZfj/nc1P08YqoCtzlN0lAXt rBr5iH/9lxuLILv3Utfu0aLM9AiQw==
- In-reply-to: <20181012134037.16689-2-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> <20181012134037.16689-2-danielsh@tarpaulin.shahaf.local2>
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