Commit 0a03d00
fix: prevent duplicate prompts and delayed output when pasting multi-command blocks
Blank lines and comments between pasted commands caused the loop to re-print
the prompt on each iteration. A prompt_needed flag ensures it fires once per
command, not once per skipped line.
Also flush stdout immediately after printing each result so output is not
held in the buffer until the next prompt flush.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 343401a commit 0a03d00
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | | - | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
0 commit comments