Unexpected space between segments/text #668
-
Prerequisites
DescriptionAfter running a command, the prompt display a space between the executiontime segment and the exit segment. Environment
Steps to Reproduce
Expected behavior: [What you expected to happen] There is no space between the executiontime segment and the exit segment. Actual behavior: [What actually happened] There is a black space between the executiontime segment and the exit segment. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Same issue here but it's a windows terminal issue. Related to this one I think microsoft/terminal#3546. There are still lots of issues related to unicode width: https://github.com/microsoft/terminal/issues?q=is%3Aissue+is%3Aopen+unicode+width |
Beta Was this translation helpful? Give feedback.
-
Not exactly sure why, but what helped for me was adding an invisible {
"type": "executiontime",
/* other attributes here */
"properties": {
"always_enabled": true,
"prefix": "\ufa1e",
"postfix": "\u2800" // invisible spacing character
}
}, |
Beta Was this translation helpful? Give feedback.
Not exactly sure why, but what helped for me was adding an invisible
\u2800
character at the end.It's an ugly workaround but the result looks nice.