• Benno Schulenberg's avatar
    screen: don't redraw the current line unnecessarily · e393a6c3
    Benno Schulenberg authored
    When moving the cursor up or down one line, redraw the new current
    line only when the target column (placewewant) is beyond the screen,
    or when the mark is on.
    
    (This still redraws the current and prior lines unnecessarily when
    they are in fact shorter than the screen is wide and the mark is off,
    but we'll let that pass for now.)
    
    Also, when softwrap is on, we don't have have to redraw the current
    and prior lines at all (when the mark is off): they are in full view,
    there is nothing to show or hide.
    e393a6c3
move.c 16.6 KB