From 7445471238bd5b78cdfce82b0e49f5bf876a0c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 10 Feb 2025 12:46:31 +0100 Subject: [PATCH] grid: reflow: shell integration: no need to check for >= 0 --- grid.c | 10 ++-------- 1 file 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