Unexpected space between segments/text #668
Answered
by
gitolicious
comanche
asked this question in
Troubleshoot
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. |
Answered by
gitolicious
Apr 23, 2021
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 |
0 replies
|
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
}
}, |
2 replies
Answer selected by
JanDeDobbeleer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Not exactly sure why, but what helped for me was adding an invisible
\u2800character at the end.{ "type": "executiontime", /* other attributes here */ "properties": { "always_enabled": true, "prefix": "\ufa1e", "postfix": "\u2800" // invisible spacing character } },It's an ugly workaround but the result looks nice.