(move_selection): variable is boolean instead of int.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-05-21 12:46:11 +04:00
parent 65f7dc3ea1
commit 443b845b0f

View File

@ -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)