From 30c2848b3550083a07ad00c1a7dac9b71e573b56 Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 17 Jun 2020 10:30:28 +0000 Subject: unnecessary check. --- main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index 902ac8f..8535738 100644 --- a/main.c +++ b/main.c @@ -205,12 +205,10 @@ rmb(Mousectl *mc, Keyboardctl *kc) } idx -= NITEMS; - if(idx >= 0){ - l = curcanvas->layers.next; - while(l != &curcanvas->layers && idx--) - l = l->next; - curcanvas->curlayer = l; - } + l = curcanvas->layers.next; + while(l != &curcanvas->layers && idx--) + l = l->next; + curcanvas->curlayer = l; } void -- cgit v1.2.3