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

PATCH: zcalc prompt fix



Hello.

There are problems when using color in ZCALCPROMPT.
This is simple fix.

--- /usr/share/zsh/functions/Misc/zcalc 2009-12-28 06:57:20.000000000 +0300
+++ zcalc       2010-01-06 14:55:15.000000000 +0300
@@ -152,7 +152,7 @@
 done

 psvar[1]=$num
-while vared -cehp "${(%)ZCALCPROMPT}" line; do
+while vared -cehp "${ZCALCPROMPT}" line; do
   [[ -z $line ]] && break
   # special cases
   # Set default base if `[#16]' or `[##16]' etc. on its own.

--
sergio.



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