1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

After last change paste_entry includes the key before the one

that begins the pasting, so do not add the same key to paste_buffer,
otherwise it will show up twice.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4760 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-03-12 09:59:35 +00:00 committed by exg
parent 30aee7b46c
commit e1713c17cb

View File

@ -402,7 +402,6 @@ static int check_pasting(unichar key, int diff)
g_array_set_size(paste_buffer, 0);
if (prev_key != '\r' && prev_key != '\n') {
paste_keycount++;
g_array_append_val(paste_buffer, prev_key);
}
} else if (paste_state > 0 && diff > paste_detect_time &&
paste_line_count == 0) {