mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-01 01:40:13 -05:00
search highlights
This commit is contained in:
parent
67120e9940
commit
43dd569afc
6 changed files with 198 additions and 160 deletions
12
terminal.c
12
terminal.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue