1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Reindent.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4675 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-01-21 15:44:05 +00:00 committed by exg
parent b9a26388b5
commit 3edcc7a611

View File

@ -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);