Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra space in some console when using surrogate pair #5706

Closed
1 task done
sharky98 opened this issue Oct 2, 2024 · 3 comments
Closed
1 task done

Extra space in some console when using surrogate pair #5706

sharky98 opened this issue Oct 2, 2024 · 3 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@sharky98
Copy link

sharky98 commented Oct 2, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

When I use a surrogate pair (such as \udb80\udced for the nf-md-calendar icon), there is sometime (see note) an extra space before the trailing diamond and after the content of the segment that does not get styled.

Note: It depends of the combination of shell (pwsh or bash via SSH) and program (VSCode, Windows Terminal, Tabby)

image

Theme

I am using a custom theme derived from night-owl. The relevant segment for the above screenshot is this.

{
  "blocks": [
      "segments": [
        {
          "background": "#234d70",
          "foreground": "#d6deeb",
          "leading_diamond": "<transparent,background>\ue0b0</>",
          "properties": {
            "time_format": "2006-01-02"
          },
          "style": "diamond",
          "template": " \udb80\udced {{ .CurrentDate | date .Format }} ",
          "trailing_diamond": "<background,transparent>\ue0b0</>",
          "type": "time"
        },
    ]
  ]
}

What OS are you seeing the problem on?

Windows, Linux

Which shell are you using?

bash, powershell, other (please specify)

Log output

@sharky98 sharky98 added the 🐛 bug Something isn't working label Oct 2, 2024
@JanDeDobbeleer
Copy link
Owner

@sharky98 unfortunately, this is a terminal bug and not an oh-my-posh one.

@sharky98
Copy link
Author

sharky98 commented Oct 2, 2024

@sharky98 unfortunately, this is a terminal bug and not an oh-my-posh one.

This is what I though, but since in Tabby the behaviour was different between pwsh and bash, I was thinking it may be due to oh-my-posh.

Thanks! 🙂

Copy link

github-actions bot commented Jan 6, 2025

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants