From 72891604020393da9c2f98095cc28d646c83a941 Mon Sep 17 00:00:00 2001 From: Marcel Rodrigues Date: Sun, 14 Jun 2015 12:36:34 -0300 Subject: [PATCH] Remove some unnecessary parentheses. --- rover.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rover.c b/rover.c index a71418f..3f1fdbb 100644 --- a/rover.c +++ b/rover.c @@ -408,11 +408,11 @@ update_view() mvwhline(rover.window, i + 1, 1, ' ', COLS - 2); if (rover.nfiles > HEIGHT) { int center, height; - center = (SCROLL + (HEIGHT / 2)) * HEIGHT / rover.nfiles; + center = (SCROLL + HEIGHT / 2) * HEIGHT / rover.nfiles; height = (HEIGHT-1) * HEIGHT / rover.nfiles; if (!height) height = 1; wcolor_set(rover.window, RVC_SCROLLBAR, NULL); - mvwvline(rover.window, center-(height/2)+1, COLS-1, RVS_SCROLLBAR, height); + mvwvline(rover.window, center-height/2+1, COLS-1, RVS_SCROLLBAR, height); } STATUS[0] = FLAGS & SHOW_FILES ? 'F' : ' '; STATUS[1] = FLAGS & SHOW_DIRS ? 'D' : ' '; @@ -561,7 +561,7 @@ try_to_sel(const char *target) while ((ESEL+1) < rover.nfiles && strcoll(ENAME(ESEL), target) < 0) ESEL++; if (rover.nfiles > HEIGHT) { - SCROLL = ESEL - (HEIGHT / 2); + SCROLL = ESEL - HEIGHT / 2; SCROLL = MIN(MAX(SCROLL, 0), rover.nfiles - HEIGHT); } } -- 2.11.4.GIT