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 pwsh when using surrogate pair with oh-my-posh #9972

Open
sharky98 opened this issue Oct 2, 2024 · 0 comments
Open

Extra space in pwsh when using surrogate pair with oh-my-posh #9972

sharky98 opened this issue Oct 2, 2024 · 0 comments
Labels

Comments

@sharky98
Copy link

sharky98 commented Oct 2, 2024

Describe the problem:

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

The weird thing with Tabby is that it happens only with pwsh, while other terminal have same behavior between pwsh and bash through SSH. I suspect you may not be using the same rendering dependency for both?

To Reproduce:

Tabby Version: 1.0.215

Use a surrogate pair in any segment such as below.

{
  "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"
        },
    ]
  ]
}

See JanDeDobbeleer/oh-my-posh#5706 for original report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant