diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-02-10 11:46:31 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-02-10 12:19:57 +0000 |
| commit | 7445471238bd5b78cdfce82b0e49f5bf876a0c60 (patch) | |
| tree | ba39ed6a02ea8d70d2e72d04122d91fe19dc69f2 /grid.c | |
| parent | render: minimum window size: 2 cols -> 1 col (diff) | |
grid: reflow: shell integration: no need to check for >= 0
Diffstat (limited to 'grid.c')
| -rw-r--r-- | grid.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -1068,17 +1068,11 @@ grid_resize_and_reflow( } } - if (unlikely(old_row->shell_integration.cmd_start >= 0 && - old_row->shell_integration.cmd_start == c)) - { + if (unlikely(old_row->shell_integration.cmd_start == c)) new_row->shell_integration.cmd_start = new_col_idx; - } - if (unlikely(old_row->shell_integration.cmd_end >= 0 && - old_row->shell_integration.cmd_end == c)) - { + if (unlikely(old_row->shell_integration.cmd_end == c)) new_row->shell_integration.cmd_end = new_col_idx; - } if (unlikely(width > new_cols)) { /* Wide character no longer fits on a row, replace |
