vendor/fltk-sys/cfltk/fltk/src/Fl_Text_Display.cxx
/**
  Re-calculate absolute top line number for a change in scroll position.

  Does nothing if the absolute top line number is not being maintained.
*/
Re-calculate absolute top line number for a change in scroll position.
Does nothing if the absolute top line number is not being maintained.
Re - calculate absolute top line number for a change in scroll position . Does nothing if the absolute top line number is not being maintained .
void Fl_Text_Display::absolute_top_line_number(int oldFirstChar) {
  if (maintaining_absolute_top_line_number()) {
    if (mFirstChar < oldFirstChar)
      mAbsTopLineNum -= buffer()->count_lines(mFirstChar, oldFirstChar);
    else
      mAbsTopLineNum += buffer()->count_lines(oldFirstChar, mFirstChar);
  }
}
void Fl_Text_Display :: absolute_top_line_number ( int oldFirstChar ) { if ( maintaining_absolute_top_line_number ( ) ) { if ( mFirstChar < oldFirstChar ) mAbsTopLineNum -= buffer ( ) -> count_lines ( mFirstChar , oldFirstChar ) ; else mAbsTopLineNum += buffer ( ) -> count_lines ( oldFirstChar , mFirstChar ) ; } }
Re-calculate absolute top line number for a change in scroll position.
Re - calculate absolute top line number for a change in scroll position .