Expand description
Bit positions inside Cell::flags. Use the named constants;
raw bit math here would be a future maintenance hazard.
Constants§
- BOLD
- S3.a (2026-05-26): text-attribute modifier — bold glyph.
Set by the cell-builder from
host::Theme::syntax_style(style).modifiers.boldso the renderer paints the cell with its font’s bold weight. - DIM
- Text-attribute modifier — dimmed cell. From
host::Theme::syntax_style(style).modifiers.dim. The renderer typically blends fg toward the pane background. - INLAY
- Cell came from an inlay-hint splice rather than source text. The body codepoint is still the inlay’s character; this bit only marks provenance so byte↔column remap can distinguish inlay positions from source bytes.
- ITALIC
- Text-attribute modifier — italic glyph. From
host::Theme::syntax_style(style).modifiers.italic. - REVERSE
- Text-attribute modifier — reverse video (swap fg/bg).
From
host::Theme::syntax_style(style).modifiers.reverse. - UNDERLINE
- Text-attribute modifier — underlined glyph. From
host::Theme::syntax_style(style).modifiers.underline. The renderer is responsible for the underline geometry (font baseline + 1px, etc.). - WS_
MARKER - Whitespace-marker cell (e.g. tab indicator
→, EOL·). Source text at this position was whitespace; the renderer substituted a marker glyph. Used bylistchars-style rendering. - WS_
TRAILING - B2.2 (2026-06-04): trailing-whitespace marker. Set in
addition to
WS_MARKERwhen the marker glyph stands in for whitespace after the last non-blank char on the line (or on an all-blank line). Lets a consumer resolve the trailing-whitespace foreground (theme.whitespace_trailing_style) from the run/cell alone — theDisplayLinemodel carries no byte positions, so without this bit aDisplayLine → CellMatrixprojection could not reproduce the cell path’s trailing-red.