fix error overwriting $i when printing messages

This commit is contained in:
Jaromil 2017-02-05 11:02:36 +01:00
parent c31c68556a
commit d49b98885d
1 changed files with 1 additions and 0 deletions

1
zuper
View File

@ -57,6 +57,7 @@ vars+=(last_act last_func last_notice)
function _msg() {
local msg="$2"
local i
command -v gettext 1>/dev/null 2>/dev/null && msg="$(gettext -s "$2")"
for i in {3..${#}}; do
msg=${(S)msg//::$(($i - 2))*::/$*[$i]}