if (tabRuns[run] == 0) return tabCount - 1;
int lastTab; if (runCount == 1) lastTab = tabCount - 1;
  protected int lastTabInRun(int tabCount, int run)  {    if (tabRuns[run] == 0)      return tabCount - 1;    else      return tabRuns[run] - 1;  }