mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Bracketed paste: fix nitpick from ahf's review
Thanks ahf
This commit is contained in:
parent
e6fa311590
commit
ce77842a98
@ -339,7 +339,7 @@ static void paste_flush(int send)
|
||||
g_array_set_size(paste_buffer, 0);
|
||||
|
||||
/* re-add anything that may have been after the bracketed paste end */
|
||||
if (paste_buffer_rest->len) {
|
||||
if (paste_buffer_rest->len > 0) {
|
||||
g_array_append_vals(paste_buffer, paste_buffer_rest->data, paste_buffer_rest->len);
|
||||
g_array_set_size(paste_buffer_rest, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user