• Explorer09's avatar
    Fix scrolling behavior change caused by 759caf0f · 3d986883
    Explorer09 authored
    Commit "Make PgDown behavior more usual." 759caf0f
    silently changes the PageDown scrolling behavior that, instead of
    scrolling one window down until the end of the window touches the end
    of the list, the window simply repositions itself in a way that the
    selected item always become the last item in the new window.
    
    The commit reverts the behavior, and also fixes sanity conditionals
    so that the scrollV variable will _never_ become negative or out-of-
    bound.
    
    Fixes issue #532. Also keep the problem #480 addressed.
    
    Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
    3d986883
Panel.c 12.4 KB