Subversion Repositories SvarDOS

Rev

Rev 1433 | Rev 1436 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1433 Rev 1435
Line 213... Line 213...
213
  while (db->cursor->prev) db->cursor = db->cursor->prev;
213
  while (db->cursor->prev) db->cursor = db->cursor->prev;
214
  db->curline = 0;
214
  db->curline = 0;
215
}
215
}
216
 
216
 
217
 
217
 
218
static void ui_basic(const struct file *db, unsigned char slotnum) {
218
static void ui_statusbar(const struct file *db, unsigned char slotnum) {
219
  const char *s = svarlang_strid(0); /* ESC=MENU */
219
  const char *s = svarlang_strid(0); /* ESC=MENU */
220
  unsigned short helpcol = screenw - strlen(s);
220
  unsigned short helpcol = screenw - strlen(s);
221
  unsigned short maxfnlen = helpcol - 14;
221
  unsigned short maxfnlen = helpcol - 14;
222
 
222
 
223
  /* slot number (guaranteed to be 0-9) */
223
  /* slot number (guaranteed to be 0-9) */
Line 877... Line 877...
877
  uidirty.statusbar = 1;
877
  uidirty.statusbar = 1;
878
 
878
 
879
  dbarr = &(dbarr[curfile]);
879
  dbarr = &(dbarr[curfile]);
880
  /* force redraw now, because the main() routine might not if this is exit
880
  /* force redraw now, because the main() routine might not if this is exit
881
   * time and we want to show the user which file has unsaved changes */
881
   * time and we want to show the user which file has unsaved changes */
882
  ui_basic(dbarr, curfile);
882
  ui_statusbar(dbarr, curfile);
883
  ui_refresh(dbarr);
883
  ui_refresh(dbarr);
884
  return(dbarr);
884
  return(dbarr);
885
}
885
}
886
 
886
 
887
 
887
 
Line 951... Line 951...
951
    mdr_cout_locate(db->cursorposy, db->cursorposx);
951
    mdr_cout_locate(db->cursorposy, db->cursorposx);
952
 
952
 
953
    ui_refresh(db);
953
    ui_refresh(db);
954
 
954
 
955
    if ((uidirty.statusbar != 0) || (db->modflagprev != db->modflag)) {
955
    if ((uidirty.statusbar != 0) || (db->modflagprev != db->modflag)) {
956
      ui_basic(db, curfile);
956
      ui_statusbar(db, curfile);
957
      uidirty.statusbar = 0;
957
      uidirty.statusbar = 0;
958
      db->modflagprev = db->modflag;
958
      db->modflagprev = db->modflag;
959
    }
959
    }
960
#ifdef DBG_LINENUM
960
#ifdef DBG_LINENUM
961
      {
961
      {