diff --git a/ChangeLog b/ChangeLog index ae08e7d87..804e721c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-13 Josh Triplett + + * grub-core/normal/term.c (grub_set_more): Use bool logic rather than + increment/decrement. + 2013-11-13 Vladimir Serbinenko * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when diff --git a/grub-core/normal/term.c b/grub-core/normal/term.c index 7b2b7bd33..4c2238b25 100644 --- a/grub-core/normal/term.c +++ b/grub-core/normal/term.c @@ -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 (); }