src/nvim/screen.c
/// clear a line in the grid starting at "off" until "width" characters
/// are cleared.
clear a line in the grid starting at "off" until "width" characters
are cleared.
clear a line in the grid starting at " off " until " width " characters are cleared .
void grid_clear_line(ScreenGrid *grid, unsigned off, int width, bool valid)
{
  for (int col = 0; col < width; col++) {
    schar_from_ascii(grid->chars[off + col], ' ');
  }
  int fill = valid ? 0 : -1;
  (void)memset(grid->attrs + off, fill, (size_t)width * sizeof(sattr_T));
}
void grid_clear_line ( ScreenGrid * grid , unsigned off , int width , bool valid ) { for ( int col = 0 ; col < width ; col ++ ) { schar_from_ascii ( grid -> chars [ off + col ] , ' ' ) ; } int fill = valid ? 0 : -1 ; ( void ) memset ( grid -> attrs + off , fill , ( size_t ) width * sizeof ( sattr_T ) ) ; }
clear a line in the grid starting at "off" until "width" characters
are cleared.
clear a line in the grid starting at " off " until " width " characters are cleared .