selection: row->dirty is a boolean

This commit is contained in:
Daniel Eklöf 2020-07-15 09:21:39 +02:00
parent 970a42a6dd
commit 540864521e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -387,11 +387,12 @@ unmark_selected(struct terminal *term, struct row *row, struct cell *cell,
return;
}
row->dirty = 1;
row->dirty = true;
cell->attrs.selected = 0;
cell->attrs.clean = 0;
}
static void
premark_selected(struct terminal *term, struct row *row, struct cell *cell,
int col, void *data)
@ -409,7 +410,7 @@ mark_selected(struct terminal *term, struct row *row, struct cell *cell,
return;
}
row->dirty = 1;
row->dirty = true;
cell->attrs.selected = 1;
cell->attrs.clean = 0;
}