src/nvim/screen.c
/// Copy part of a grid line for vertically split window.
Copy part of a grid line for vertically split window.
Copy part of a grid line for vertically split window .
static void linecopy(ScreenGrid *grid, int to, int from, int col, int width)
{
  unsigned off_to = grid->line_offset[to] + col;
  unsigned off_from = grid->line_offset[from] + col;
  memmove(grid->chars + off_to, grid->chars + off_from,
          width * sizeof(schar_T));
  memmove(grid->attrs + off_to, grid->attrs + off_from,
          width * sizeof(sattr_T));
}
static void linecopy ( ScreenGrid * grid , int to , int from , int col , int width ) { unsigned off_to = grid -> line_offset [ to ] + col ; unsigned off_from = grid -> line_offset [ from ] + col ; memmove ( grid -> chars + off_to , grid -> chars + off_from , width * sizeof ( schar_T ) ) ; memmove ( grid -> attrs + off_to , grid -> attrs + off_from , width * sizeof ( sattr_T ) ) ; }
Copy part of a grid line for vertically split window.
Copy part of a grid line for vertically split window .