fill
adds one too many spaces on Windows Terminal when used with cmd_duration
#5924
Labels
🐛 bug
Something isn't working as expected.
fill
adds one too many spaces on Windows Terminal when used with cmd_duration
#5924
Bug Report
Current Behavior
Using
fill
withcmd_duration
. Fill adds one too many spaces when the cmd_duration is formatted like this:"[[](fg:#5C7F6A)⏱️ $duration[](fg:#5C7F6A)]($style)"
Expected Behavior
First line of prompt to be correctly padded by fill.
Additional context/Screenshots
Screenshot with default format vs. my custom format:
Note: Happens on Windows Terminal, does not happen on iTerm or Warp on MacOS
Possible Solution
Workaround is to add extra space to end of cmd_duration format string.
Environment
starship --version
]zsh
zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
Ubuntu 22.04.3 LTS
Relevant Shell Configuration
Starship Configuration
The text was updated successfully, but these errors were encountered: