1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Replace some hairy logic with g_array_remove_range

In the hope it'll do the same under the hood.
This commit is contained in:
LemonBoy 2015-09-08 00:55:34 +02:00 committed by dequis
parent f1eead7b4a
commit 15dad291c7

View File

@ -679,9 +679,7 @@ static void sig_input(void)
if (seq_start) {
paste_bracketed_mode = TRUE;
/* remove the leading sequence chars */
memmove(paste_buffer->data, paste_buffer->data + sizeof(bp_start),
paste_buffer->len * g_array_get_element_size(paste_buffer) - sizeof(bp_start));
g_array_set_size(paste_buffer, paste_buffer->len - 6);
g_array_remove_range(paste_buffer, 0, 6);
}
if (seq_end) {