Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh-workers/25095 broke "prompt bart"



I probably would never have noticed this if I weren't playing around with
randomly resizing the window and therefore saw the right-side part of the
prompt appear and disappear for no obvious reason.

The following seems to fix it but I'm not sure I understand why the {*}
doesn't match too much when used in the substitution on line 97.

--- ../current/Functions/Prompts/prompt_bart_setup	2008-06-04 08:43:46.000000000 -0700
+++ Functions/Prompts/prompt_bart_setup	2008-09-02 18:52:13.000000000 -0700
@@ -70,7 +70,7 @@
 
 prompt_bart_precmd () {
     setopt localoptions noxtrace noksharrays unset
-    local zero='%([BSUbfksu]|FB{*})' escape colno lineno
+    local zero='%([BSUbfksu]|[FB]{*})' escape colno lineno
 
     # Using psvar here protects against unwanted promptsubst expansions.



Messages sorted by: Reverse Date, Date, Thread, Author