summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-01-21 15:44:05 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-01-21 15:44:05 +0000
commit3edcc7a61151792c61d61bb46930c69feed079ff (patch)
tree59be10bb975bdf9a67effbbc59058201d60c51d2
parentb9a26388b5fb934972619b3f415eedd9e7e735b5 (diff)
downloadirssi-3edcc7a61151792c61d61bb46930c69feed079ff.zip
Reindent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4675 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-text/gui-readline.c18
1 files changed, 9 insertions, 9 deletions
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);