mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
selection: row->dirty is a boolean
This commit is contained in:
parent
970a42a6dd
commit
540864521e
1 changed files with 3 additions and 2 deletions
|
|
@ -387,11 +387,12 @@ unmark_selected(struct terminal *term, struct row *row, struct cell *cell,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
row->dirty = 1;
|
row->dirty = true;
|
||||||
cell->attrs.selected = 0;
|
cell->attrs.selected = 0;
|
||||||
cell->attrs.clean = 0;
|
cell->attrs.clean = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
premark_selected(struct terminal *term, struct row *row, struct cell *cell,
|
premark_selected(struct terminal *term, struct row *row, struct cell *cell,
|
||||||
int col, void *data)
|
int col, void *data)
|
||||||
|
|
@ -409,7 +410,7 @@ mark_selected(struct terminal *term, struct row *row, struct cell *cell,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
row->dirty = 1;
|
row->dirty = true;
|
||||||
cell->attrs.selected = 1;
|
cell->attrs.selected = 1;
|
||||||
cell->attrs.clean = 0;
|
cell->attrs.clean = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue