diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-12-27 13:42:10 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-12-27 13:42:10 +0100 |
| commit | c06c696a20fa8987bbb13da608153ccfc3cd55e7 (patch) | |
| tree | 83bfd0270564bab0e8832a9b8902b4493edf82cd /tis100-curses.c | |
| parent | 238ac5ab6c47bfe0c9cda1490f97f2d7f5d3eaf6 (diff) | |
| download | tis100-c06c696a20fa8987bbb13da608153ccfc3cd55e7.tar.gz tis100-c06c696a20fa8987bbb13da608153ccfc3cd55e7.zip | |
Fixup idle calculation
Diffstat (limited to 'tis100-curses.c')
| -rw-r--r-- | tis100-curses.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tis100-curses.c b/tis100-curses.c index c45f367..8556480 100644 --- a/tis100-curses.c +++ b/tis100-curses.c @@ -213,7 +213,7 @@ tui_draw_tpu(struct tpu *tpu) } tui_draw_text(sx + 1 + offx, sy + 1 + offy, inst == tpu->pc ? A_STANDOUT | (tpu->idle ? A_DIM : 0) : 0, - "%-*.*s", TPU_MAX_COLS, TPU_MAX_COLS, rowbuf); + "%-*.*s", TPU_MAX_COLS - offx, TPU_MAX_COLS, rowbuf); inst += 1; offy += 1; offx = 0; |
