Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
- X-seq: zsh-workers 37617
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
- Date: Thu, 14 Jan 2016 10:19:15 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=/zpuynqP9J6Cz5eNttCmMHaGXOa/PoG+DU3TN3/sHvM=; b=NcIddR1iiCN1DmwiGzsMVc2odnQhcBKiLt3Rjje14QEU7DlA7unfuJjOSlBsxOEsMN QZNiBaeac4C0HOuRiL4DCe6lHF2XBzQ1VArxD7KZ1J1aDOfry6MV0KtCNRFvuCEUz8T5 GOuSZm4JaGBFtHHTh6/RJlsidPN1uC663J3LsGc+k5AmwugYky3HRop0VBigWhwRXZ0J dI43Gt+KCtDXZuZckXmCFOGukMvCUm6mTfv7HAkemMJwsPPN/EaTwwUC5DMbxlOSr4VG 63Kwbyk9AFRv2Z2LhOQGDGCDZJ0/aSv1ispRAWde8dbKA9C4xsaauZf4BiZEQqQagWid AEsw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
in both cases words array is empty, so CURRENT=0 seems to be more
logical value. Maybe something bigger is hidden behind this.
Here is a test code that might be employed to see this:
https://github.com/psprint/zsh-editing-workbench/blob/de33867898643e6161dd172db6f8bab42f73083d/widen_for_history
It's enabled with:
autoload widen_for_history
zle -N widen_for_history
zstyle ':completion:*' completer widen_for_history _complete
Outputs of the code for $( <Tab> and $(( <Tab>
A CURRENT: 1, words: ><
B CURRENT: 1, words: >$( <
C CURRENT: 1, CURSR: 2, lft: |$(|, rght: ||, words: >$(<
PREFIX: |$(|, SUFFIX: ||
Calling _history
$(( 0 + 1 )) $(( 0 + 1 )) $(( 試句相當長 "" $(( 0 + 1 )) $( ( echo b ))
$(( echo b ) ) $(( echo a ) ) $(( 0 + 1 )) $(( 0 + 1 )) $(( i + 1 ))
$(( i + 1 )) $(( i + 1 )) $(( i+1 )) $(( i+1 )) $(( i+1 )) $(( i+1 ))
$(( i+1 ))
A CURRENT: 0, words: ><
B CURRENT: 0, words: >$(( <
C CURRENT: 1, CURSR: 4, lft: |$((|, rght: ||, words: >$((<
PREFIX: |$((|, SUFFIX: ||
Calling _history
$(( 0 + 1 )) $(( 0 + 1 )) $(( 試句相當長 "" $(( 0 + 1 )) $(( echo b ) )
$(( echo a ) ) $(( 0 + 1 )) $(( 0 + 1 )) $(( i + 1 )) $(( i + 1 )) $((
i + 1 )) $(( i+1 )) $(( i+1 )) $(( i+1 )) $(( i+1 )) $(( i+1 ))
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author