mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
paste_bracketed_end: Fix rest length calculation
This commit is contained in:
parent
52729ca3da
commit
3b01198f03
1 changed files with 1 additions and 1 deletions
|
|
@ -655,7 +655,7 @@ static void paste_bracketed_end(int i, gboolean rest)
|
||||||
/* if there's stuff after the end bracket, save it for later */
|
/* if there's stuff after the end bracket, save it for later */
|
||||||
if (rest) {
|
if (rest) {
|
||||||
unichar *start = ((unichar *) paste_buffer->data) + i + G_N_ELEMENTS(bp_end);
|
unichar *start = ((unichar *) paste_buffer->data) + i + G_N_ELEMENTS(bp_end);
|
||||||
int len = paste_buffer->len - G_N_ELEMENTS(bp_end);
|
int len = paste_buffer->len - i - G_N_ELEMENTS(bp_end);
|
||||||
|
|
||||||
g_array_set_size(paste_buffer_rest, 0);
|
g_array_set_size(paste_buffer_rest, 0);
|
||||||
g_array_append_vals(paste_buffer_rest, start, len);
|
g_array_append_vals(paste_buffer_rest, start, len);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue