diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-06-08 15:52:00 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-06-08 15:52:00 +0000 |
| commit | 620fe8e76427a3cc5783c0e632a395c9b9752c43 (patch) | |
| tree | 851b7caf8ec9d02d882cd96d7cb743c437c058bc /render.c | |
| parent | terminal: fix compilation error when debug logging is enabled (diff) | |
vt: fix buggy chains of ternary expressions in action_esc_dispatch()
Only the first character in the chain was being compared with `priv`
and the rest were just being evaluated as simple expressions. This
was causing the G2 and G3 operations to erroneously use the G1 index.
Since the characters are a contiguous range, we can just subtract the
start of the range to get the appropriate index. The outer switch
statement already ensures the values are in range.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
