mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-13 08:21:03 -04: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
|
static void
|
||||||
sgr_reset(struct terminal *term)
|
sgr_reset(struct terminal *term)
|
||||||
{
|
{
|
||||||
/* TODO: can we drop this check? */
|
term->vt.attrs = (struct attributes){0};
|
||||||
memset(&term->vt.attrs, 0, sizeof(term->vt.attrs));
|
term->vt.curly = (struct curly_range_data){0};
|
||||||
memset(&term->vt.curly, 0, sizeof(term->vt.curly));
|
|
||||||
|
|
||||||
term->bits_affecting_ascii_printer.curly_style = false;
|
term->bits_affecting_ascii_printer.curly_style = false;
|
||||||
term->bits_affecting_ascii_printer.curly_color = false;
|
term->bits_affecting_ascii_printer.curly_color = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue