help / color / Atom feed
From: dana <dana@dana.is>
To: mpy@gmx.net
Cc: zsh-workers@zsh.org
Subject: Re: BUG: calendar style date completion broken
Date: Wed, 16 Oct 2019 21:02:51 -0500
Message-ID: <2F7B4CC3-FC26-414C-99B1-5C65336848ED@dana.is> (raw)
In-Reply-To: <201910162159150203.00855760@gateway.core.mpy.ch>

On 16 Oct 2019, at 14:59, Manuel Presnitz <mpy@gmx.net> 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


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 ))
   (( 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

  reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-16 19:59 Manuel Presnitz
2019-10-17  2:02 ` dana [this message]
2019-10-17  3:39   ` Bart Schaefer
2019-10-19 11:37   ` Re[2]: " Manuel Presnitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2F7B4CC3-FC26-414C-99B1-5C65336848ED@dana.is \
    --to=dana@dana.is \
    --cc=mpy@gmx.net \
    --cc=zsh-workers@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git