fix(ui): don't send empty grid_line with redrawdebug=compositor (#23899)

This commit is contained in:
zeertzjq
2023-06-04 10:49:02 +08:00
committed by GitHub
parent 700cab0068
commit fdc8e966a9
3 changed files with 17 additions and 1 deletions

View File

@@ -439,7 +439,7 @@ static void compose_line(Integer row, Integer startcol, Integer endcol, LineFlag
static void compose_debug(Integer startrow, Integer endrow, Integer startcol, Integer endcol,
int syn_id, bool delay)
{
if (!(rdb_flags & RDB_COMPOSITOR)) {
if (!(rdb_flags & RDB_COMPOSITOR) || startcol >= endcol) {
return;
}