Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: menu-completion bug
- X-seq: zsh-users 22589
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: ZSH Mail List <zsh-users@xxxxxxx>, ZSH Mail List <zsh-users@xxxxxxx>
- Subject: Re: menu-completion bug
- Date: Sun, 19 Mar 2017 18:54:22 -0700
- Cc: "Vadim A. Misbakh-Soloviov" <mva@xxxxxxxx>
- 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==
- In-reply-to: <1721226.EHNCKcHUvk@note>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1721226.EHNCKcHUvk@note>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author