Project and Repair workspaces; adoption keeps the person's own pane; truncation fix

This commit is contained in:
Sam
2026-11-10 14:28:18 +11:00
parent 031073fc46
commit c9a1a61cba
15 changed files with 910 additions and 23 deletions

View File

@@ -137,9 +137,10 @@ func truncateVisible(s string, w int) string {
i += len(string(r[0]))
visible++
}
out.WriteString("…")
// close any styling that is still open
out.WriteString("\x1b[0m")
if i < len(s) {
out.WriteString("…")
out.WriteString("\x1b[0m")
}
return out.String()
}