From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27118 invoked by alias); 3 Oct 2013 13:42:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31778 Received: (qmail 782 invoked from network); 3 Oct 2013 13:42:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7ef66d00000795a-9a-524d71d4b030 Date: Thu, 03 Oct 2013 14:32:03 +0100 From: Peter Stephenson To: Zsh Hackers' List Subject: Re: Bug somewhere in verbose output for completion listing Message-id: <20131003143203.256f7397@pwslap01u.europe.root.pri> In-reply-to: <20131003140025.227f5bc1@pwslap01u.europe.root.pri> References: <20131003140025.227f5bc1@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupiluLIzCtJLcpLzFFi42I5/e/4Fd0rhb5BBoufsVkcbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujEeNN5kLHnJWHFvbxNTA+IO9i5GTQ0LARGLmkctQtpjEhXvr 2boYuTiEBJYySjz5P4cZwlnOJHHv9WEgh4ODRUBV4uwsB5AGNgFDiambZjOChEUEtCXaP4qB hIUFnCV+dqwFm8krYC/xf9NzJhCbU8BBomX5FrApQkDx13etQML8AvoSV/9+YoI4wV5i5pUz jBCtghI/Jt9jAbGZBbQkNm9rYoWw5SU2r3nLPIFRYBaSsllIymYhKVvAyLyKUTS1NLmgOCk9 10ivODG3uDQvXS85P3cTIyT8vu5gXHrM6hCjAAejEg/vBG2fICHWxLLiytxDjBIczEoivN/y fIOEeFMSK6tSi/Lji0pzUosPMTJxcEo1MO6s4uwRirG5oy/IdpjxZ3NigkRzxKNlnodrmZz2 m4Qb1uRlLtqpfXuF1NtbIdwX9DTXRLUyrk2UlpzxivesxrWmjl+vXkSkZBT5rnmQHPvAje9g ZuqG9+XfJc+28DVtqar9wP9GdNI7ibXV2UG/2asuBq54b/qXK9RRlF9utf9nZ4Hs5b8XKbEU ZyQaajEXFScCAEgqhq8dAgAA On Thu, 03 Oct 2013 14:00:25 +0100 Peter Stephenson wrote: > If I find a moment I'll try to make it more reproducible (although > simply attaching to a running shell might be good enough to track it > down). Appears to be trivial to reproduce in the obvious manner, by generating a single long completion. autoload -Uz compinit compinit _wtf2 () { local stuff stuff=('SpoobleOneVariantWithAVeryLongCompletionThatCouldCauseAllSortsOfMayhemAfterAllWhoKnowsWhatEvilLurksEtc:2012/11/02 Description of SpoobleOne' 'SpoobleTwo:2013/02/13 Description of SpoobleTwo') _describe -t stuff 'Stuff to complete.' stuff } compdef _wtf2 wtf2 _wtf () { local stuff stuff=('SpoobleOne:2012/11/02 Description of SpoobleOne' 'SpoobleTwo:2013/02/13 Description of SpoobleTwo') _describe -t stuff 'Stuff to complete.' stuff } compdef _wtf wtf Complete after wtf2 as far as getting a listing (the separator is the default "--" instead of the "#" in the previous posting). This is as easy as typing "wtf2 ^D". It already looks a bit screwy at this point as the comment is missing even though the separator is present. Then whenever you get a listing after wtf you see the problem. pws