Commit 79b2fd9e authored by Behdad Esfahbod's avatar Behdad Esfahbod Committed by Behdad Esfahbod

Use structure assignment instead of memcpy().

2008-12-05  Behdad Esfahbod  <behdad@gnome.org>

        * src/vte.c (_vte_terminal_insert_char):
        * src/vteseq.c (vte_sequence_handler_screen_alignment_test):
        Use structure assignment instead of memcpy().


svn path=/trunk/; revision=2328
parent 51a2447a
2008-12-05 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (_vte_terminal_insert_char):
* src/vteseq.c (vte_sequence_handler_screen_alignment_test):
Use structure assignment instead of memcpy().
2008-12-05 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (_vte_terminal_cleanup_tab_fragments_at_cursor): Remove
......
......@@ -3165,7 +3165,7 @@ _vte_terminal_insert_char(VteTerminal *terminal, gunichar c,
}
}
memcpy (&attr, &screen->defaults.attr, sizeof (attr));
attr = screen->defaults.attr;
attr.columns = columns;
if (G_UNLIKELY (c == '_' && terminal->pvt->flags.ul)) {
......
......@@ -3060,7 +3060,7 @@ vte_sequence_handler_screen_alignment_test (VteTerminal *terminal, GValueArray *
_vte_terminal_emit_text_deleted(terminal);
/* Fill this row. */
cell.c = 'E';
memcpy (&cell.attr, &screen->basic_defaults.attr, sizeof (cell.attr));
cell.attr = screen->basic_defaults.attr;
cell.attr.columns = 1;
vte_g_array_fill(rowdata->cells, &cell, terminal->column_count);
_vte_terminal_emit_text_inserted(terminal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment