Browse Source

fix error overwriting $i when printing messages

Jaromil 3 years ago
parent
commit
d49b98885d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      zuper

+ 1 - 0
zuper

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