From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21700 invoked by alias); 4 Oct 2016 20:14:38 -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: 39560 Received: (qmail 24132 invoked from network); 4 Oct 2016 20:14:38 -0000 X-Qmail-Scanner-Diagnostics: from smtprelay01.ispgateway.de 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(80.67.18.43):SA:0(0.0/5.0):. Processed in 0.475449 secs); 04 Oct 2016 20:14:38 -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=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: ft@bewatermyfriend.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Tobias Witt Cc: zsh-workers@zsh.org Subject: Re: nvcsformats not working on 5.2 In-Reply-To: <7F71078B-4007-42F2-82AE-E404059C2A99@hhu.de> (Tobias Witt's message of "Tue, 4 Oct 2016 16:00:33 +0200") References: <7F71078B-4007-42F2-82AE-E404059C2A99@hhu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Date: Tue, 04 Oct 2016 21:57:04 +0200 Message-ID: <8737kbripb.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: NDMwNDQ0 Hi Tobias, Tobias Witt wrote: > I have noticed an issue on 5.2 which is not present on 5.0. I tested > it on macOS Sierra (zsh installed view homebrew) and on Debian 8 (zsh > built from source). > > The problem is with the vcs_info module. I set nvcsformats like > > zstyle ':vcs_info:*' nvcsformats "%~" "" > > which should make $vcs_info_msg_0_ return the current working > directory after vcs_info is called. I do it in a similar way for > formats like > > zstyle ':vcs_info:*' formats "%S" "${path_color}%r/" > > which works without a problem inside a git repository. Outside a git > repository (where nvcsformats should be used) $vcs_info_msg_0_ is > empty. This has worked (ie $vcs_info_msg_0_ was set to "%~") before > and it is still working on that debian machine with zsh from the > debian-repository (which is 5.0.7). > > Is this new or a known issue? Yup, this is a known issue: http://www.zsh.org/mla/workers/2015/msg03258.html That thread has the fix as well. Regards, Frank