fix(dotmatrix): optim loop
Avoid subshells
This commit is contained in:
parent
7d1d8b5092
commit
d18e623c38
1 changed files with 5 additions and 1 deletions
|
|
@ -367,7 +367,11 @@ _lp_dotmatrix_theme_prompt() {
|
|||
head_width=0
|
||||
fi
|
||||
|
||||
local spaced_side+=$(printf "%.0s " $(seq ${head_width}))
|
||||
local spaced_side=""
|
||||
local i
|
||||
for ((i=0; i < head_width; i++)); do
|
||||
spaced_side+=" "
|
||||
done
|
||||
|
||||
header+="${spaced_side}${side}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue