From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 6c46ae95 for ; Thu, 17 Oct 2019 02:03:34 +0000 (UTC) Received: (qmail 16339 invoked by alias); 17 Oct 2019 02:03:28 -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: 44846 Received: (qmail 22859 invoked by uid 1010); 17 Oct 2019 02:03:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f65.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25601. spamassassin: 3.4.2. Clear:RC:0(209.85.166.65):SA:0(-1.9/5.0):. Processed in 1.568372 secs); 17 Oct 2019 02:03:28 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.65 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3VsUtiKVZ5Dh1fx6WmKEomkicUvQJFC9PcB9uBXZBbU=; b=zhcmY5sYnx1g1zBbCkT6/Au+HQHhH5b+VF6XgNFbNo7pPuFGDMgeBnw5Fj2LL95/lZ UeM6jSyVZjn0CVr8fLLnUBuHN4aSJkVDCKBR4+9n8c9zg2uUW7wuO9ai3P2Q6wEEFgNX b22xETOGbM1sB5QcKGg6T9hF2SHFujckU44geNqzcjtYu0BF54bDQ8EAMCMLrO13tpOn rfX9OldyndwHrLEczrZf98xscGWnwulas+qHRewLciNw+AB0qgKfL/X0EXnzY8GqO4SC 56EN2C3zot2KdDFDVgR8dUGDII4/+0H4dd7CNe6JzwVCDl2JxeXH2+9TcEKByLc+2FL5 gxSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3VsUtiKVZ5Dh1fx6WmKEomkicUvQJFC9PcB9uBXZBbU=; b=gEjKGX8OxWEETuvXSIfKDpHEtyDxpWY04E9MzVZ+66Z52YaDmeqabglha+LtHQdsbZ Pv+iiXGvplGd3fzp0l4Du//CGllQi+/q3R5G2nDjiWtd6PImXdE6ePm1olTSZdU7ZFGl 3t8uccm7V8Jpms7gj2Hc5U9Efsmn2SUo3nYiSlv+FYP9FBX+QdIi1TeDLSmKT11YBJ6b oal2h1LZ9/4jmB0Gd6Df8Rj3OHAJ3YGUy875Z87iMtCVvGY3fNJ7SwvGBJOg2XHDelSw ojv9sD96eYAf8s9DA/iFpVtAWztwYJaWCdKhpAn9RN7TzymHJd/nVhrRW1kOtwlYE0Cw xEzA== X-Gm-Message-State: APjAAAX2/S37/0qZ05qem1w+MZYhqIU0+1XberCo674alTyrptIDZD1/ 9+JvsUQ1meG4xTld/oeX+AR4Nw== X-Google-Smtp-Source: APXvYqxsSSmB5p2xdJqMZhbpawleZIycYi7GKq5+g/RLU/l6G1IWKdZePwGIhuF4fmz2qgtgQN74iQ== X-Received: by 2002:a02:92c9:: with SMTP id c9mr1080482jah.0.1571277773037; Wed, 16 Oct 2019 19:02:53 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: BUG: calendar style date completion broken From: dana In-Reply-To: <201910162159150203.00855760@gateway.core.mpy.ch> Date: Wed, 16 Oct 2019 21:02:51 -0500 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: 7bit Message-Id: <2F7B4CC3-FC26-414C-99B1-5C65336848ED@dana.is> References: <201910162159150203.00855760@gateway.core.mpy.ch> To: mpy@gmx.net X-Mailer: Apple Mail (2.3445.104.11) On 16 Oct 2019, at 14:59, Manuel Presnitz wrote: > Instead of a nicely formatted calendar you get some garbage to > select from. > > Unfortunately I wasn't able to fix this bug myself, as the completion > system is (still) black magic for me, so I could not supply a patch. I don't think i've ever used this function before, so someone should probably confirm that it's all there, but this seems to bring the calendar back for me at least dana diff --git a/Completion/Unix/Type/_dates b/Completion/Unix/Type/_dates index 0af10eb24..b75b3af0c 100644 --- a/Completion/Unix/Type/_dates +++ b/Completion/Unix/Type/_dates @@ -73,7 +73,7 @@ for ((;rows;rows--)); do (( spacing = COLUMNS - 32 * columns + 2 )) disp[-1]="${(l.spacing.)}" (( spacing < 2 )) && spacer=0 disp[-1]=() - expl[1+expl[(i)-V]]=dates-$rows + expl[1+expl[(i)-J]]=dates-$rows compadd -x "$mlabels" "$expl[@]" -d disp -E $(( $#disp )) for ((line=0;line<6;line++)); do