Dynamic Prompt: Simplify math
This commit is contained in:
parent
214f7b2e27
commit
eebef409fd
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -2909,7 +2909,7 @@ dynamic_prompt() {
|
||||||
get_term_padding 2>/dev/null
|
get_term_padding 2>/dev/null
|
||||||
|
|
||||||
# Calculate image height in terminal cells.
|
# Calculate image height in terminal cells.
|
||||||
lines="$(((height + (${border:-0} * 2) + ${yoffset:-0}) / font_height))"
|
lines="$(((border * 2 + height + yoffset) / font_height))"
|
||||||
;;
|
;;
|
||||||
"off") return ;;
|
"off") return ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue