diff options
Diffstat (limited to 'dev/tui')
| -rw-r--r-- | dev/tui/tui.zig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index 2c6cf2ee..25172b4a 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -1584,8 +1584,11 @@ const Shell = struct { // is held for the next wait: `split`). s.takeQueue(); // An exit's wake (a .nop) or output an exit waited behind: told - // here, inside the step, so the frame after it shows it. - s.takeExits(); + // here, inside the step, so the frame after it shows it; not while + // reads taken off the queue wait their steps (`takeQueue`): one of + // them may be the command's own last output, which its exit would + // be drawn above (CommandWatch.due cannot see it). + if (s.batch_at == s.batch.len) s.takeExits(); s.reloadWatched(); } |
