From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11365 invoked from network); 6 Oct 2006 05:12:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Oct 2006 05:12:37 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 80411 invoked from network); 6 Oct 2006 05:12:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 05:12:30 -0000 Received: (qmail 18846 invoked by alias); 6 Oct 2006 05:12:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10789 Received: (qmail 18835 invoked from network); 6 Oct 2006 05:12:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Oct 2006 05:12:20 -0000 Received: (qmail 79147 invoked from network); 6 Oct 2006 05:12:20 -0000 Received: from 24-241-49-70.static.athn.ga.charter.com (HELO gkar.zhar.net) (24.241.49.70) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 05:12:19 -0000 Received: from mollari.zhar.net ([192.168.1.7]) by gkar.zhar.net with smtp (Exim 3.36 #1 (Debian)) id 1GVi6W-0003p1-00 for ; Fri, 06 Oct 2006 01:18:36 -0400 Received: by mollari.zhar.net (sSMTP sendmail emulation); Fri, 6 Oct 2006 01:12:16 -0400 Date: Fri, 6 Oct 2006 01:12:15 -0400 From: John Eikenberry To: zsh users Subject: _all_matches moves cursor Message-ID: <20061006051215.GA12364@mollari.zhar.net> Mail-Followup-To: John Eikenberry , zsh users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 I recently added _all_matches to my completion config [1] and have come across an annoying behaviour. When the '- all matches -' line is longer than my terminal is wide, the cursor (along with the command being completed) gets bounced down a line. Here's an attempt at showing what it does... the # represents the cursor. This is after typing 'apt-'. [jae_0]apt- 201 - exterapt-# 201 apt-cache apt-check apt-extracttemplates apt-get apt-sortpkgs apt-cdrom apt-config apt-ftparchive apt-key - all matches - apt-cache apt-cdrom apt-check apt-config apt-extracttemplates apt-ftparchive ... As long as the '- all matches -' line is shorter then the terminal width this doesn't happen. Suggestions? Thanks. [1] Here's all of my zstyle completion settings. zstyle ':completion:*' completer _all_matches _complete _match _approximate _ignored zstyle ':completion:*:match:*' original only zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' menu select zstyle ':completion:*:*:man:*' menu yes zstyle ':completion:*' group-name '' zstyle ':completion:*:manuals' separate-sections true zstyle ':completion:*:manuals.*' insert-sections true zstyle ':completion:*:descriptions' format "- %d -" -- John Eikenberry [jae@zhar.net - http://zhar.net] ______________________________________________________________ "It is difficult to produce a television documentary that is both incisive and probing when every twelve minutes one is interrupted by twelve dancing rabbits singing about toilet paper." - Rod Serling