diff options
author | LemonBoy <thatlemon@gmail.com> | 2015-09-08 00:55:34 +0200 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-09-27 16:08:06 -0300 |
commit | 15dad291c7829c4ae7855880654b94d6edb4f17f (patch) | |
tree | 8097a04d8262bbaca38b4aa4bdad4bdcd8e5e377 /src/fe-text/gui-readline.c | |
parent | f1eead7b4a7cdcae6d71dba6e97d38e9d34fcf95 (diff) | |
download | irssi-15dad291c7829c4ae7855880654b94d6edb4f17f.zip |
Replace some hairy logic with g_array_remove_range
In the hope it'll do the same under the hood.
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r-- | src/fe-text/gui-readline.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 90399711..c4c0064e 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -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) { |