diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index ddb48139..90483090 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -424,16 +424,16 @@ static int check_pasting(unichar key, int diff) if ((key == '\r' || key == '\n') && (prev_key != '\r' && prev_key != '\n')) { 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 */ - g_array_set_size(paste_buffer, 0); - *paste_entry = '\0'; - return FALSE; - } + 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 */ + g_array_set_size(paste_buffer, 0); + *paste_entry = '\0'; + return FALSE; + } - /* newline - assume this line was pasted */ + /* newline - assume this line was pasted */ paste_state = 2; gui_entry_set_text(active_entry, paste_entry); gui_entry_set_pos(active_entry, paste_entry_pos);