Subversion Repositories SvarDOS

Rev

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

Rev 1437 Rev 1438
Line 257... Line 257...
257
    const char *eoltype = "CRLF";
257
    const char *eoltype = "CRLF";
258
    if (db->lfonly) eoltype += 2;
258
    if (db->lfonly) eoltype += 2;
259
    mdr_cout_str(screenlastrow, helpcol - 6, eoltype, SCHEME_STBAR1, 5);
259
    mdr_cout_str(screenlastrow, helpcol - 6, eoltype, SCHEME_STBAR1, 5);
260
  }
260
  }
261
 
261
 
262
  /* line number */
262
  /* line numbers */
263
  {
263
  {
264
    unsigned short x = 1 + db->curline;
264
    unsigned short x;
-
 
265
    unsigned char count = 0;
265
    unsigned short coloffset = 9;
266
    unsigned short coloffset = 9;
-
 
267
 
-
 
268
    x = 1 + db->totlines;
-
 
269
    AGAIN:
266
    do {
270
    do {
267
      mdr_cout_char(screenlastrow, helpcol - coloffset, '0' + (x % 10), SCHEME_STBAR1);
271
      mdr_cout_char(screenlastrow, helpcol - coloffset, '0' + (x % 10), SCHEME_STBAR1);
268
      x /= 10;
272
      x /= 10;
269
      coloffset++;
273
      coloffset++;
270
    } while (x);
274
    } while (x);
-
 
275
    /* redo same exercise, but printing the current line now */
-
 
276
    if (count == 0) {
-
 
277
      count = 1;
-
 
278
      mdr_cout_char(screenlastrow, helpcol - coloffset, '/', SCHEME_STBAR1);
-
 
279
      coloffset++;
-
 
280
      x = 1 + db->curline;
-
 
281
      goto AGAIN;
-
 
282
    }
-
 
283
 
271
  }
284
  }
272
 
285
 
273
  mdr_cout_str(screenlastrow, helpcol, s, SCHEME_STBAR2, 40);
286
  mdr_cout_str(screenlastrow, helpcol, s, SCHEME_STBAR2, 40);
274
}
287
}
275
 
288