Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: calendar style date completion broken
- X-seq: zsh-workers 44846
- From: dana <dana@xxxxxxx>
- To: mpy@xxxxxxx
- Subject: Re: BUG: calendar style date completion broken
- Date: Wed, 16 Oct 2019 21:02:51 -0500
- Cc: zsh-workers@xxxxxxx
- 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==
- In-reply-to: <201910162159150203.00855760@gateway.core.mpy.ch>
- 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: <201910162159150203.00855760@gateway.core.mpy.ch>
On 16 Oct 2019, at 14:59, Manuel Presnitz <mpy@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author