From 443b845b0f170d70d3b851a2804f7c55277dce8b Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 21 May 2014 12:46:11 +0400 Subject: [PATCH] (move_selection): variable is boolean instead of int. Signed-off-by: Andrew Borodin --- src/filemanager/panel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index 26f6a183a..78f8e009f 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -2068,7 +2068,7 @@ static void move_selection (WPanel * panel, int lines) { int new_pos; - int adjust = 0; + gboolean adjust = FALSE; new_pos = panel->selected + lines; if (new_pos >= panel->dir.len) @@ -2083,13 +2083,13 @@ move_selection (WPanel * panel, int lines) if (panel->selected - panel->top_file >= ITEMS (panel)) { panel->top_file += lines; - adjust = 1; + adjust = TRUE; } if (panel->selected - panel->top_file < 0) { panel->top_file += lines; - adjust = 1; + adjust = TRUE; } if (adjust)