summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-09-25 02:23:38 -0300
committerdequis <dx@dxzone.com.ar>2015-09-27 16:08:07 -0300
commit83f9772e213b6b1e181338738c2997150162c871 (patch)
treeacf585e103956b887b2fb9a56333b1330c96924e /src
parent79987d87f37f37ce07171ad4c6b94ffbab77b36d (diff)
downloadirssi-83f9772e213b6b1e181338738c2997150162c871.zip
Fix some minor style issues
Diffstat (limited to 'src')
-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 7f1ed9ca..9b635139 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -710,13 +710,12 @@ static void sig_input(void)
}
for (i = 0; i <= len; i++, ptr++) {
- if (ptr[0] == bp_end[0] && !memcmp(ptr, bp_end, sizeof(bp_end))) {
+ if (ptr[0] == bp_end[0] && memcmp(ptr, bp_end, sizeof(bp_end)) == 0) {
paste_bracketed_end(i, i != len);
break;
}
}
- }
- else if (paste_detect_time > 0 && paste_buffer->len >= 3) {
+ } else if (paste_detect_time > 0 && paste_buffer->len >= 3) {
if (paste_timeout_id != -1)
g_source_remove(paste_timeout_id);
paste_timeout_id = g_timeout_add(paste_detect_time, paste_timeout, NULL);