General: Function cleanup

This commit is contained in:
Dylan Araps 2016-11-06 18:06:23 +11:00
parent 37dd5d5741
commit fec45f7a75
1 changed files with 4 additions and 7 deletions

View File

@ -2440,13 +2440,10 @@ prin() {
# Underline {{{
getunderline() {
case "$underline_enabled" in
"on")
underline="$(printf %"$length"s)"
underline="${underline// /$underline_char}"
;;
"off") underline="" ;;
esac
if [ "$underline_enabled" == "on" ]; then
underline="$(printf %"$length"s)"
underline="${underline// /$underline_char}"
fi
}
# }}}