TivaWare_C_Series-2.1.4.178/third_party/windows/fltk-1.1.10/src/Fl_Text_Display.cxx
/*
** Given a Fl_Text_Display with a complete, up-to-date lineStarts array, update
** the lastChar entry to point to the last buffer position displayed.
*/
Given a Fl_Text_Display with a complete, up-to-date lineStarts array, update
the lastChar entry to point to the last buffer position displayed.
Given a Fl_Text_Display with a complete up - to - date lineStarts array update the lastChar entry to point to the last buffer position displayed .
void Fl_Text_Display::calc_last_char() {
  int i;
  for (i = mNVisibleLines - 1; i >= 0 && mLineStarts[i] == -1; i--) ;
  mLastChar = i < 0 ? 0 : line_end(mLineStarts[i], true);
}
void Fl_Text_Display :: calc_last_char ( ) { int i ; for ( i = mNVisibleLines - 1 ; i >= 0 && mLineStarts [ i ] == -1 ; i -- ) ; mLastChar = i < 0 ? 0 : line_end ( mLineStarts [ i ] , true ) ; }
Given a Fl_Text_Display with a complete, up-to-date lineStarts array, update
the lastChar entry to point to the last buffer position displayed.
Given a Fl_Text_Display with a complete up - to - date lineStarts array update the lastChar entry to point to the last buffer position displayed .