src/nvim/fileio.c
/*
 * From the current line count and characters read after that, estimate the
 * line number where we are now.
 * Used for error messages that include a line number.
 */
From the current line count and characters read after that, estimate the
line number where we are now.
Used for error messages that include a line number.
From the current line count and characters read after that estimate the line number where we are now . Used for error messages that include a line number .
static linenr_T
readfile_linenr(
    linenr_T linecnt,         
    char_u *p,                
    char_u *endp              
)
{
  char_u      *s;
  linenr_T lnum;
  lnum = curbuf->b_ml.ml_line_count - linecnt + 1;
  for (s = p; s < endp; ++s)
    if (*s == '\n')
      ++lnum;
  return lnum;
}
static linenr_T readfile_linenr ( linenr_T linecnt , char_u * p , char_u * endp ) { char_u * s ; linenr_T lnum ; lnum = curbuf -> b_ml . ml_line_count - linecnt + 1 ; for ( s = p ; s < endp ; ++ s ) if ( * s == ' \n ' ) ++ lnum ; return lnum ; }
From the current line count and characters read after that, estimate the
 line number where we are now.
From the current line count and characters read after that estimate the line number where we are now .
// line count before reading more bytes // start of more bytes read // end of more bytes read