* vcs_info: unreadable executable directories don't flush $vcs_info_msg_N_
@ 2020-06-17 8:47 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2020-06-17 8:47 UTC (permalink / raw)
To: zsh-workers
[[[
$ zsh -f
% autoload vcs_info
% git init foo
% mkdir -m117 bar
% cd foo
% autoload vcs_info; precmd() { vcs_info; typeset -pm 'vcs_info_msg_*_' }
typeset -g vcs_info_msg_0_=' (git)-[master]-'
typeset -g vcs_info_msg_1_=''
% cd ../bar
typeset -g vcs_info_msg_0_=' (git)-[master]-'
typeset -g vcs_info_msg_1_=''
%
]]]
I would have expected vcs_info_msg_0_ to be empty or unset after the
last cd command. The current behaviour amounts to displaying wrong
information.
---
Preliminary analysis. vcs_info has this code at the very top:
% < Functions/VCS_Info/vcs_info nl -ba | vipe
50 vcs_info () {
51 emulate -L zsh
52 setopt extendedglob NO_warn_create_global
53
54 [[ -r . ]] || return 0
I'm guessing VCS_INFO_set should be called before returning.
It's on my list but not near the top; feel free to beat me to it.
Cheers,
Daniel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-17 8:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 8:47 vcs_info: unreadable executable directories don't flush $vcs_info_msg_N_ Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).