mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-23 01:40:12 -05:00
csi: sgr_reset(): avoid using memset()
This _should_ be what the compiler does anyway (i.e. it _should_ replace the memset() with inline MOVs). But let's be sure.
This commit is contained in:
parent
08138e9546
commit
5e046e6a84
1 changed files with 2 additions and 3 deletions
5
csi.c
5
csi.c
|
|
@ -32,9 +32,8 @@
|
|||
static void
|
||||
sgr_reset(struct terminal *term)
|
||||
{
|
||||
/* TODO: can we drop this check? */
|
||||
memset(&term->vt.attrs, 0, sizeof(term->vt.attrs));
|
||||
memset(&term->vt.curly, 0, sizeof(term->vt.curly));
|
||||
term->vt.attrs = (struct attributes){0};
|
||||
term->vt.curly = (struct curly_range_data){0};
|
||||
|
||||
term->bits_affecting_ascii_printer.curly_style = false;
|
||||
term->bits_affecting_ascii_printer.curly_color = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue