Replace newlines with spaces in prompt display
This commit is contained in:
parent
ed43aaff78
commit
cc1d2628a9
|
|
@ -67,7 +67,7 @@ export async function action(opts: { json?: boolean }) {
|
|||
console.log(` ${dim}${"BRANCH".padEnd(branchWidth)} PROMPT${reset}`)
|
||||
|
||||
for (const s of sessions) {
|
||||
const prompt = s.prompt ?? ""
|
||||
const prompt = (s.prompt ?? "").replace(/\n/g, " ")
|
||||
const status = statuses[s.branch]
|
||||
const icon = icons[status]
|
||||
const bc = branchColors[status]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user