Modify _msg function for new string format.

This commit is contained in:
gdrooid 2014-08-29 11:16:00 +02:00
parent f7057b7d03
commit bb863b7e17

3
tomb
View File

@ -491,7 +491,8 @@ option_value() {
# Messaging function with pretty coloring
function _msg() {
local msg="$(gettext -s "$2")"
local tmp_msg="$(gettext -s - "$2")"
local msg="${(S)${(S)${(S)tmp_msg//::3*::/$5}//::2*::/$4}//::1*::/$3}"
local command="print -P"
local progname="$fg[magenta]${TOMBEXEC##*/}$reset_color"
local message="$fg_bold[normal]$fg_no_bold[normal]$msg$reset_color"