Closed GethDeeo closed 2 years ago
@GethDeeo that's weird. Could it be some output has ANSI characters? What happens when you only add the icon and not the version information?
This works: {{.Full}}
This works: {{.Env.JAVA_HOME}}
This causes the weird output: {{path .Full .Env.JAVA_HOME}}
(the generated link itself is fine)
@JanDeDobbeleer This is indeed fixed on Windows since your commit. However, I'm now using oh-my-posh on WSL and other linux environments too with the exact same theme posted here, and the problem has been resurfaced. The symptoms are exactly as I've described last time, only the size of the weird empty space is smaller this time (~10 characters).
I know the path
helper function does not create clickable hyperlinks in these environments, but I would like to use the exact same theme across platforms.
$ oh-my-posh --version
7.57.0
@GethDeeo which shell? Because I know the culprit ;-)
It would be bash
, if I'm not mistaken (ubuntu 20.04).
$ bash --version
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
@GethDeeo if you don't know for sure, oh-my-posh get shell
will tell you.
bash
it is :)
@GethDeeo I found the issue, fixed it and identified another one. I'll push a fix somewhere tomorrow.
@GethDeeo I just pushed a new version. If you would be so kind. It seems to now calculate the correct prompt width.
To me it seems to be fixed. Thanks!
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
When
java
segment gets enabled, it causes a significant amount of negative offset added to itself and the rest of segments on that line. PowerShell 7.2.0 Terminal 1.11.3471.0Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output