Skip to content

Commit 0b71756

Browse files
committed
fix: omp.json -- leading rounded cap is now plain-style text segment (was diamond w/ empty template -- oh-my-posh skipped rendering on some versions)
Operator: powerline still shows 2 spaces at col 0-1 instead of the rounded U+E0B6 left cap, even after the diamond-style fix in 7ad2e8a. Cause: the leading 'text' segment used style=diamond + leading_diamond= U+E0B6 + template="" (empty). oh-my-posh appears to skip-render diamond segments with empty templates on some versions, leaving the cap invisible. Fix: leading-cap segment is now style=plain with the U+E0B6 glyph IN THE TEMPLATE and foreground=#1A407F (the next 'shell' segment's bg). The U+E0B6 glyph is a filled half-circle; rendered in #1A407F on the terminal's transparent default bg, it visually merges into the following blue powerline segment as a soft left cap. Same fix applied to the line-2 leading position.
1 parent 7ad2e8a commit 0b71756

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

usr/share/mios/oh-my-posh/mios.omp.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@
2121
"alignment": "left",
2222
"segments": [
2323
{
24-
"//": "Leading rounded cap (U+E0B6) so the colored powerline starts at col 0 of the frameless MiOS terminal -- replaces the previous plain U+256D U+2500 text prefix that left cols 0-2 uncolored. Background shared with the next 'shell' segment so the cap merges visually.",
24+
"//": "Leading rounded cap (U+E0B6) rendered as a plain-style text segment whose template IS the cap glyph and foreground = next-segment's bg. The U+E0B6 glyph is a filled half-circle; against the terminal's transparent default bg with foreground #1A407F, it renders as a blue half-circle that visually merges into the following 'shell' powerline segment (also #1A407F bg). The previous diamond-style with empty template was unreliable -- oh-my-posh skipped the segment on some versions, leaving cols 0-2 uncolored.",
2525
"type": "text",
26-
"style": "diamond",
27-
"leading_diamond": "\ue0b6",
28-
"trailing_diamond": "",
29-
"background": "#1A407F",
30-
"foreground": "#E7DFD3",
31-
"template": ""
26+
"style": "plain",
27+
"foreground": "#1A407F",
28+
"template": "\ue0b6"
3229
},
3330
{
3431
"type": "shell",

0 commit comments

Comments
 (0)