mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 11:04:42 +03:00
(move_selection): variable is boolean instead of int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
65f7dc3ea1
commit
443b845b0f
@ -2068,7 +2068,7 @@ static void
|
|||||||
move_selection (WPanel * panel, int lines)
|
move_selection (WPanel * panel, int lines)
|
||||||
{
|
{
|
||||||
int new_pos;
|
int new_pos;
|
||||||
int adjust = 0;
|
gboolean adjust = FALSE;
|
||||||
|
|
||||||
new_pos = panel->selected + lines;
|
new_pos = panel->selected + lines;
|
||||||
if (new_pos >= panel->dir.len)
|
if (new_pos >= panel->dir.len)
|
||||||
@ -2083,13 +2083,13 @@ move_selection (WPanel * panel, int lines)
|
|||||||
if (panel->selected - panel->top_file >= ITEMS (panel))
|
if (panel->selected - panel->top_file >= ITEMS (panel))
|
||||||
{
|
{
|
||||||
panel->top_file += lines;
|
panel->top_file += lines;
|
||||||
adjust = 1;
|
adjust = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (panel->selected - panel->top_file < 0)
|
if (panel->selected - panel->top_file < 0)
|
||||||
{
|
{
|
||||||
panel->top_file += lines;
|
panel->top_file += lines;
|
||||||
adjust = 1;
|
adjust = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (adjust)
|
if (adjust)
|
||||||
|
Loading…
Reference in New Issue
Block a user