commands.cc
/*
** goto_first - position cursor on first line in listing.  This routine
**              is not called if atBegOfList\(\) is true.
*/
position cursor on first line in listing.  This routine
is not called if atBegOfList\(\) is true.
position cursor on first line in listing . This routine is not called if atBegOfList \ ( \ ) is true .
static void goto_first(DirList *dl)
{
    if (dl->head() != dl->firstLine())
        initial_listing(dl);
    else
    {
        if (dl->currLine()->length() > columns()) rightshift_current_line(dl);
        dl->setCurrLine(dl->head());
    }
    dl->saveYXPos(0, goal_column(dl));
    if (dl->currLine()->length() > columns())
        leftshift_current_line(dl);
    else
        move_cursor(0, dl->savedXPos());
    synch_display();
}
static void goto_first ( DirList * dl ) { if ( dl -> head ( ) != dl -> firstLine ( ) ) initial_listing ( dl ) ; else { if ( dl -> currLine ( ) -> length ( ) > columns ( ) ) rightshift_current_line ( dl ) ; dl -> setCurrLine ( dl -> head ( ) ) ; } dl -> saveYXPos ( 0 , goal_column ( dl ) ) ; if ( dl -> currLine ( ) -> length ( ) > columns ( ) ) leftshift_current_line ( dl ) ; else move_cursor ( 0 , dl -> savedXPos ( ) ) ; synch_display ( ) ; }
goto_first - position cursor on first line in listing.
goto_first - position cursor on first line in listing .