From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5079 invoked by alias); 20 Mar 2017 01:53:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22589 Received: (qmail 14215 invoked from network); 20 Mar 2017 01:53:43 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.52):SA:0(-0.0/5.0):. Processed in 1.93896 secs); 20 Mar 2017 01:53:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.52 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject:cc :mime-version; bh=qaLMfv+MvqosJG200x6W54XiIXEQz5jrS9zIE5jdeAo=; b=jBg/B6vPq8wihU9uZTroKiHf9R+UZ9gixkMf0i/jO+5g/VQf7VAWObwsGDDdbz6FNI Xw7hxzgErk2EYc7GZAjDe/lv4pFGljqKkVlFbxcXK4bitTvQ9YyZgwdTMgHwZowqAq7C Cy/aWwTL5443YQnLqm9E54XioVKIk+DDYFwq+MvUjGcGueHXX1D9lIO7OHu4rRN6WBxp zTrwbYgOz1ztLEi1tahgybgBWZw2INOyLPCvShhh+ekK8/5uBGyF/GPZ/9etjoMZMnEz o+kbYUYftDFFDknoPXomFJPMfK9HKlbFY0kCAljZicXqAwQmE1OjvM9fOF4Iho7rRjJ5 0XRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:cc:mime-version; bh=qaLMfv+MvqosJG200x6W54XiIXEQz5jrS9zIE5jdeAo=; b=QYRFZZwgmg5I9iTm+shRUrOwPmg1nPAYGHNupGHWmuGHpLuGtsljn3X7co24VtIv87 BLyEA7OKGzUBK2gk0yqFxxLcamI7oo7url5a7OKqXY9izgHySICunCQZoxgk+E1MxKMN WlRxB+Y5BQUcquY0u5BOekCXozDZovZ7CVeKvFL3Y7hlG31sJ/rOUYpQj15YZn0TIrd+ E7K/4V6WMLZZ024mWSF51yhTkjcQ/NOT2fc8oA3AWuHmViG7QepIU7FMjpXcERNAxkGL rGzLVbcWKujHuZI/YIgWG3KCZyvspVvOD/26r5jpwLPjpNPE6zHCm01XMnmIHuo30SiV W1Cw== X-Gm-Message-State: AFeK/H1c1Le2YTbJXv3VycBm9eo99JnKIliI+ydjL+eIvtTj0r9DmnqV2JXqTLgACdpfOw== X-Received: by 10.31.33.75 with SMTP id h72mr10342974vkh.26.1489974813403; Sun, 19 Mar 2017 18:53:33 -0700 (PDT) From: Bart Schaefer Message-Id: <170319185422.ZM26428@torch.brasslantern.com> Date: Sun, 19 Mar 2017 18:54:22 -0700 In-Reply-To: <1721226.EHNCKcHUvk@note> Comments: In reply to "Vadim A. Misbakh-Soloviov" "menu-completion bug" (Mar 16, 1:42am) References: <1721226.EHNCKcHUvk@note> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: ZSH Mail List , ZSH Mail List Subject: Re: menu-completion bug Cc: "Vadim A. Misbakh-Soloviov" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 16, 1:42am, Vadim A. Misbakh-Soloviov wrote: } } If you see that pre-last column items getting "reversed" green colour } (i.e. foreground=terminal-default-fg-color,background=green), then you } just confirmed bug. This isn't strictly a completion bug, rather it's a problem with the coloring support in the complist module. There are several things going on at once here -- the matches are being color-coded, the menu navigation is maintaining the reverse-video for the current selection position, and various things like the "@" between username and hostname are being highlighted on the command line. For some of these there is no explicit ANSI sequence to turn exactly one attribute off, instead everything has to be reset. So on some of the repaint positions, the sequences to turn a new effect on are issued, and an artifact of the old sequences is left. This seems to come down to whether clprintm(), called from singledraw() at line 1947, returns early without outputting anything. That works if only the default colors are being used, but not when the "normal text" color has been changed. So I suspect it's an optimization gone wrong. That's as far as I've gotten. Further discussion should probably be on the zsh-workers list.