Skip to content

Commit

Permalink
fix error overwriting $i when printing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Feb 5, 2017
1 parent c31c685 commit d49b988
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zuper
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down

0 comments on commit d49b988

Please sign in to comment.