fix(status-line): wrapped overflow segments

Preserved configured segment priority by packing overflow into continuation rows.

Extended EditorTopBorder to render ordered rows inside the editor frame.

Fixes #5749
This commit is contained in:
roboomp
2026-07-16 20:19:54 +00:00
parent c0d0ad7629
commit 8ca790cb6f
13 changed files with 274 additions and 310 deletions
@@ -183,7 +183,10 @@ export class SelectorController {
getStatusLinePreview: () => {
// Return the rendered status line for inline preview
const availableWidth = this.ctx.editor.getTopBorderAvailableWidth(this.ctx.ui.terminal.columns);
return this.ctx.statusLine.getTopBorder(availableWidth).content;
return this.ctx.statusLine
.getTopBorder(availableWidth)
.lines.map(line => line.content)
.join("\n");
},
onPluginsChanged: async () => {
const projectPath = await resolveActiveProjectRegistryPath(this.ctx.sessionManager.getCwd());