Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0
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=YojSj6eHARhNIvkFmKYy8IRoojcvi2tYWmoRfJoMW5U=;
        b=di7Gh0l2Y+D4wvUi/F+R/JZ08qSWxeBCLjLH8ObEmMlV1zeNzDhWQD8Il1+sUJyzog
         EDY08bch+YksZ1ppDBpXJBMZZSJvftUq1buuvNT+aKsfb/TvyWqtms3Nq3Q7bj+yYFaX
         d1YTKymVCdMneRKGVnqy/hk21S7IENTylFu84Z7HZ+GdzoDZJUfVHChZxUUZcBdTlLnt
         Qk02cqPulrKe7vEGNVM1acs0CFoVBsmxw1WonR5naEEk+/Kun73uKydVZlCK0fXY9m1u
         w4YEnMH6jENjbxON3bIbDaPtxG9Xkc/50ntITnZpdWXx0rXXAMQYWOy32MnfyfhUjJZV
         FJug==
X-Received: by 10.112.137.129 with SMTP id qi1mr10976176lbb.31.1452454576485;
 Sun, 10 Jan 2016 11:36:16 -0800 (PST)
MIME-Version: 1.0
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date: Sun, 10 Jan 2016 20:35:56 +0100
Message-ID: <CAKc7PVCnEX1rEhNqhtx7spyUVKCWukz4Tzkqr27-OV9+4hVciQ@mail.gmail.com>
Subject: _history-complete-older problems with $(
To: Zsh hackers list <zsh-workers@zsh.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Seq: zsh-workers 37546

Hello
$(<Alt-/> doesn't complete $(( 0+1 )) correctly. When I empty my
~/.zhistory and do:

set HISTSIZE=3D3
a=3D""
a=3D"${(r:100000:: _:)a}"
echo $(( 0+1 ))

then $<Alt-/> works, but $(<Alt-/> doesn't. The completing is setup with:

setopt hist_lex_words
bindkey "^[/" _history-complete-older
zstyle ':completion:*:history-words' remove-all-dups true
zstyle ':completion:*' range 50000:10000

Also, the remove-all-dups zstyle doesn't work which may be verified by doin=
g:

set HISTSIZE=3D3
echo $(( 0+1 ))
a=3D"${(r:100000:: _:)a}"
echo $(( 0+1 ))

and doing echo $(<Alt-/> =E2=80=93 there will be echo shown twice, so as $(=
( 0+1 ))

(If I don't empty ~/.zhistory, then Alt-/ sometimes wants me to
propose hundreds of words, apparently taken from ~/.zhistory, so this
ignores HISTSIZE).

Best regards,
Sebastian Gniazdowski

