zsh-workers
 help / color / mirror / code / Atom feed
* $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
@ 2016-01-14  9:19 Sebastian Gniazdowski
  2016-01-15  3:04 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2016-01-14  9:19 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-15  3:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14  9:19 $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0 Sebastian Gniazdowski
2016-01-15  3:04 ` Bart Schaefer

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