commands.cc
/*
** insert_line - inserts the current line into the DirList after line y.
**               Only called if y != rows\(\)-3.  That is, this routine
**               is for the case when we don\'t need to scroll the screen
**               to place the line into its logical place on the screen.
*/
inserts the current line into the DirList after line y.
Only called if y != rows\(\)-3.  That is, this routine
is for the case when we don\'t need to scroll the screen
to place the line into its logical place on the screen.
inserts the current line into the DirList after line y . Only called if y ! = rows \ ( \ ) - 3 . That is this routine is for the case when we don \ ' t need to scroll the screen to place the line into its logical place on the screen .
static void insert_line(DirList *dl, int y )
{
    if (CS)
    {
        insert_listing_line(y + 1);
        display_string(dl->currLine()->line(), dl->currLine()->length());
    }
    else if(AL)
    {
        clear_modeline();
        insert_blank_line(y + 1);
        display_string(dl->currLine()->line(), dl->currLine()->length());
        update_modeline();
    }
    else
        redisplay();
}
static void insert_line ( DirList * dl , int y ) { if ( CS ) { insert_listing_line ( y + 1 ) ; display_string ( dl -> currLine ( ) -> line ( ) , dl -> currLine ( ) -> length ( ) ) ; } else if ( AL ) { clear_modeline ( ) ; insert_blank_line ( y + 1 ) ; display_string ( dl -> currLine ( ) -> line ( ) , dl -> currLine ( ) -> length ( ) ) ; update_modeline ( ) ; } else redisplay ( ) ; }
insert_line - inserts the current line into the DirList after line y.
insert_line - inserts the current line into the DirList after line y .