commands.cc
/*
** scroll_up_one_line - Scroll the listing up one line.
**                      We only call this routine when we KNOW that
**                      there is at least one line below the window
**                      which can be scrolled into it and the cursor
**                      is on the last line of the screen.
*/
Scroll the listing up one line.
We only call this routine when we KNOW that
there is at least one line below the window
which can be scrolled into it and the cursor
is on the last line of the screen.
Scroll the listing up one line . We only call this routine when we KNOW that there is at least one line below the window which can be scrolled into it and the cursor is on the last line of the screen .
static void scroll_up_one_line(DirList *dl)
{
    dl->setFirst(dl->firstLine()->next());
    dl->setLast(dl->lastLine()->next());
    dl->setCurrLine(dl->lastLine());
    if (CS)
    {
        scroll_listing_up_one();
        display_string(dl->currLine()->line(), dl->currLine()->length());
    }
    else if (DL || SF)
    {
        clear_modeline();
        scroll_screen_up_one();
        update_modeline();
        move_cursor(rows()-3, 0);
        display_string(dl->currLine()->line(), dl->currLine()->length());
    }
    else
        redisplay();
    dl->saveYXPos(rows()-3, goal_column(dl));
    move_cursor(rows()-3, dl->savedXPos());
}
static void scroll_up_one_line ( DirList * dl ) { dl -> setFirst ( dl -> firstLine ( ) -> next ( ) ) ; dl -> setLast ( dl -> lastLine ( ) -> next ( ) ) ; dl -> setCurrLine ( dl -> lastLine ( ) ) ; if ( CS ) { scroll_listing_up_one ( ) ; display_string ( dl -> currLine ( ) -> line ( ) , dl -> currLine ( ) -> length ( ) ) ; } else if ( DL || SF ) { clear_modeline ( ) ; scroll_screen_up_one ( ) ; update_modeline ( ) ; move_cursor ( rows ( ) - 3 , 0 ) ; display_string ( dl -> currLine ( ) -> line ( ) , dl -> currLine ( ) -> length ( ) ) ; } else redisplay ( ) ; dl -> saveYXPos ( rows ( ) - 3 , goal_column ( dl ) ) ; move_cursor ( rows ( ) - 3 , dl -> savedXPos ( ) ) ; }
scroll_up_one_line - Scroll the listing up one line.
scroll_up_one_line - Scroll the listing up one line .