1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Simplify.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4674 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-01-21 15:41:12 +00:00 committed by exg
parent 33e2358f09
commit b9a26388b5

View File

@ -423,8 +423,8 @@ static int check_pasting(unichar key, int diff)
g_array_append_val(paste_buffer, key);
if ((key == '\r' || key == '\n') &&
(prev_key != '\r' && prev_key != '\n')) {
if (paste_state == 1 &&
paste_keycount < paste_detect_keycount) {
if (paste_state == 1) {
if (paste_keycount < paste_detect_keycount) {
/* not enough keypresses to determine if this is
pasting or not. don't reset paste keycount, but
send this line as non-pasted */
@ -434,7 +434,6 @@ static int check_pasting(unichar key, int diff)
}
/* newline - assume this line was pasted */
if (paste_state == 1) {
paste_state = 2;
gui_entry_set_text(active_entry, paste_entry);
gui_entry_set_pos(active_entry, paste_entry_pos);