mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
grid: reflow: shell integration: no need to check for >= 0
This commit is contained in:
parent
8b63869f57
commit
7445471238
1 changed files with 2 additions and 8 deletions
10
grid.c
10
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue