mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Increment paste_keycount when the key before the one that starts a
possible pasting is not a '\r' or '\n'. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4467 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
39d15501c8
commit
83c178c169
@ -398,8 +398,10 @@ static int check_pasting(unichar key, int diff)
|
||||
paste_line_count = 0;
|
||||
paste_keycount = 0;
|
||||
g_array_set_size(paste_buffer, 0);
|
||||
if (prev_key != '\r' && prev_key != '\n')
|
||||
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) {
|
||||
/* reset paste state */
|
||||
|
Loading…
Reference in New Issue
Block a user