fix(api): win_config border type #38030

Problem: ArrayOf(String) doesn't cover mixed string/array border chars.

Solution: use Union(Array, Enum(...)) to match parse_border_style behavior.
This commit is contained in:
glepnir
2026-02-24 00:23:46 +08:00
committed by GitHub
parent 32d3dd0650
commit 1ec74fa7b1
2 changed files with 2 additions and 2 deletions

View File

@@ -468,7 +468,7 @@ error('Cannot require a meta file')
--- @field width? integer
--- @field zindex? integer
--- @field anchor? "NW"|"NE"|"SW"|"SE"
--- @field border? string[]|"none"|"single"|"double"|"rounded"|"solid"|"shadow"
--- @field border? any[]|"none"|"single"|"double"|"rounded"|"solid"|"shadow"
--- @field bufpos? integer[]
--- @field col? number
--- @field split? "left"|"right"|"above"|"below"

View File

@@ -133,7 +133,7 @@ typedef struct {
Integer width;
Integer zindex;
Enum("NW", "NE", "SW", "SE") anchor;
Union(ArrayOf(String), Enum("none", "single", "double", "rounded", "solid", "shadow")) border;
Union(Array, Enum("none", "single", "double", "rounded", "solid", "shadow")) border;
ArrayOf(Integer) bufpos;
Float col;
Enum("left", "right", "above", "below") split;