Commit 07fe27f
fix(themes/powerline): ensure prompt starts on a new line
When a command's output has no trailing newline, \e[G (column 1) in PS1
would overwrite that output with the prompt. Add a missing-newline
indicator in PROMPT_COMMAND: reversed-video % marks the incomplete line,
then \r\e[K moves to column 1 and clears it, so the prompt always
renders cleanly regardless of the previous command's output.
Fixes #2372
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 854c4ee commit 07fe27f
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
| |||
0 commit comments