zsh-workers
 help / color / mirror / code / 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	[thread overview]
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

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


  reply	other threads:[~2019-10-17  2:03 UTC|newest]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* 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 \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).