mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Fixed calculation for padding.
This commit is contained in:
parent
29ef36a06a
commit
bedc794d10
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ p_choose_prompt () {
|
||||||
local p_line_1a_width=${#${(S%%)p_line_1a//(\%([KF1]|)\{*\}|\%[Bbkf])}}
|
local p_line_1a_width=${#${(S%%)p_line_1a//(\%([KF1]|)\{*\}|\%[Bbkf])}}
|
||||||
local p_line_1b_width=${#${(S%%)p_line_1b//(\%([KF1]|)\{*\}|\%[Bbkf])}}
|
local p_line_1b_width=${#${(S%%)p_line_1b//(\%([KF1]|)\{*\}|\%[Bbkf])}}
|
||||||
|
|
||||||
local p_padding_size=$(( COLUMNS - p_line_1a_width + 2 - p_line_1b_width))
|
local p_padding_size=$(( COLUMNS - p_line_1a_width - p_line_1b_width))
|
||||||
|
|
||||||
# Try to fit in long path and user@host.
|
# Try to fit in long path and user@host.
|
||||||
if (( p_padding_size > 0 )); then
|
if (( p_padding_size > 0 )); then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue