* grub-core/normal/term.c (grub_set_more): Use bool logic rather than
increment/decrement.
This commit is contained in:
parent
c773faf05e
commit
46d8a2033b
2 changed files with 6 additions and 4 deletions
|
@ -124,10 +124,7 @@ print_more (void)
|
|||
void
|
||||
grub_set_more (int onoff)
|
||||
{
|
||||
if (onoff == 1)
|
||||
grub_more++;
|
||||
else
|
||||
grub_more--;
|
||||
grub_more = !!onoff;
|
||||
grub_normal_reset_more ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue