search highlights

This commit is contained in:
Piotr Kocia 2025-03-27 21:47:28 +01:00
parent 67120e9940
commit 43dd569afc
6 changed files with 198 additions and 160 deletions

View file

@ -2479,6 +2479,18 @@ term_font_baseline(const struct terminal *term)
return term->font_y_ofs + line_height - glyph_top_y - font->descent;
}
void
term_damage_cell(struct terminal* const term, int const row, int const col)
{
if(col >= term->grid->num_cols || col < 0) {
return;
}
struct row* const r = grid_row(term->grid, row);
r->dirty = true;
r->cells[col].attrs.clean = 0;
}
void
term_damage_cell_in_view(struct terminal* const term, int const row, int const col)
{