commands.cc
/*
** scroll_down_one_line - Scroll the listing down one line.
**                        We only call this routine when we KNOW
**                        that the head\(\) of the listing is not visible
**                        and the cursor is on the first line in the window.
*/
Scroll the listing down one line.
We only call this routine when we KNOW
that the head\(\) of the listing is not visible
and the cursor is on the first line in the window.
Scroll the listing down one line . We only call this routine when we KNOW that the head \ ( \ ) of the listing is not visible and the cursor is on the first line in the window .
static void scroll_down_one_line(DirList *dl)
{
    if (lines_displayed(dl) == rows() - 2)
         Must update lastLine.  We previously had a screenfull of lines.
        dl->setLast(dl->lastLine()->prev());
    dl->setFirst(dl->firstLine()->prev());
    dl->setCurrLine(dl->firstLine());
    if (CS)
    {
        scroll_listing_down_one();
        display_string(dl->currLine()->line(), dl->currLine()->length());
    }
    else if (AL || SR)
    {
        clear_modeline();
        scroll_screen_down_one();
        update_modeline();
        cursor_home();
        display_string(dl->currLine()->line(), dl->currLine()->length());
    }
    else
        redisplay();
    dl->saveYXPos(0, goal_column(dl));
    move_cursor(0, dl->savedXPos());
}
static void scroll_down_one_line ( DirList * dl ) { if ( lines_displayed ( dl ) == rows ( ) - 2 ) dl -> setLast ( dl -> lastLine ( ) -> prev ( ) ) ; dl -> setFirst ( dl -> firstLine ( ) -> prev ( ) ) ; dl -> setCurrLine ( dl -> firstLine ( ) ) ; if ( CS ) { scroll_listing_down_one ( ) ; display_string ( dl -> currLine ( ) -> line ( ) , dl -> currLine ( ) -> length ( ) ) ; } else if ( AL || SR ) { clear_modeline ( ) ; scroll_screen_down_one ( ) ; update_modeline ( ) ; cursor_home ( ) ; display_string ( dl -> currLine ( ) -> line ( ) , dl -> currLine ( ) -> length ( ) ) ; } else redisplay ( ) ; dl -> saveYXPos ( 0 , goal_column ( dl ) ) ; move_cursor ( 0 , dl -> savedXPos ( ) ) ; }
scroll_down_one_line - Scroll the listing down one line.
scroll_down_one_line - Scroll the listing down one line .
// // Must update lastLine.  We previously had a screenfull of lines. //