summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-01-21 15:41:12 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-01-21 15:41:12 +0000
commitb9a26388b5fb934972619b3f415eedd9e7e735b5 (patch)
tree3c4feb4ba6f103e473d9ee209f6f5e8aed573e0b
parent33e2358f0981ab100204106d14336d3860a20fcf (diff)
downloadirssi-b9a26388b5fb934972619b3f415eedd9e7e735b5.zip
Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4674 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-text/gui-readline.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 476fe9b8..ddb48139 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -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);