From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21756 invoked by alias); 24 Jul 2015 23:07:49 -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: 35893 Received: (qmail 18598 invoked from network); 24 Jul 2015 23:07:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=dLzh/bs4bPbJ7xHr3WduXoGh6oY7g7z1L90Bgx4d39I=; b=TpRpBDWcc/56uwZhoTGjr6yj7GWrHznkmVNBzSjaAmTvEmXdd9EUGuFv5J4ErdwUeI 6jg/74TxAtpfi1EohneA532YVenUr0pDeB3HTSpsXSymcxkFyxk0h11BjEyowTtXLmMB 26MQoQJ37Gxm9/exUmwls+jPH8SryfIrZX9pKR/2Ue3fiX7pv1V9ISEDwUZ/xK+bgIu7 8M0zwYnxC9NodWcDatIsSC7L+IYyPp/6NuOkrt33YO3nY6+uacgbu6SnjfUOcRXIm1pq EI2bL8c9heNDZOvm3jW1Pokyw2bGWeJkGk2h8m2X//QeZ863lWNVzYpfmVWPuZuP25V5 wrgg== X-Gm-Message-State: ALoCoQkojfLgUea7D62MOGubBKXj5EykgVqmMjEbeggDDV17bdz9SC0GyO9mjLzIaWKTrIol+s7T X-Received: by 10.202.12.142 with SMTP id 136mr16496750oim.30.1437779261666; Fri, 24 Jul 2015 16:07:41 -0700 (PDT) From: Bart Schaefer Message-Id: <150724160737.ZM20912@torch.brasslantern.com> Date: Fri, 24 Jul 2015 16:07:37 -0700 In-Reply-To: <20150724214952.GA15359@zira.vinc17.org> Comments: In reply to Vincent Lefevre "X font completion is buggy" (Jul 24, 11:49pm) References: <20150724214952.GA15359@zira.vinc17.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: X font completion is buggy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 24, 11:49pm, Vincent Lefevre wrote: } } zira:~> xterm -fn fix[TAB] } } is completed to: } } zira:~> xterm -fn fixed-- } } zira:~> xlsfonts | grep '^fix' } fixed } fixed } } So, it should have been "fixed". Try this patch, although I'm not sure why _font_cache is trimming out a bunch of size and character set variations in the first place: diff --git a/Completion/X/Type/_x_font b/Completion/X/Type/_x_font index a363b27..d4da6c8 100644 --- a/Completion/X/Type/_x_font +++ b/Completion/X/Type/_x_font @@ -9,7 +9,7 @@ _tags fonts || return 1 if (( ! $+_font_cache )); then typeset -gU _font_cache - _font_cache=( "${(@)^${(@f)$(_call_program fonts xlsfonts 2> /dev/null)}%%--*}--" ) + _font_cache=( "${(@)^${(@f)$(_call_program fonts xlsfonts 2> /dev/null)}/%--*/--}" ) fi _wanted fonts expl font \