aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-02-10 11:46:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-02-10 12:19:57 +0000
commit7445471238bd5b78cdfce82b0e49f5bf876a0c60 (patch)
treeba39ed6a02ea8d70d2e72d04122d91fe19dc69f2
parentrender: minimum window size: 2 cols -> 1 col (diff)
grid: reflow: shell integration: no need to check for >= 0
-rw-r--r--grid.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/grid.c b/grid.c
index 2b537ba9..ceaeb230 100644
--- a/grid.c
+++ b/grid.c
@@ -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