---
edit/editdraw.c | 35 +++++++----------------------------
1 file changed, 7 insertions(+), 28 deletions(-)
old
|
new
|
edit_draw_this_line (WEdit *edit, long b |
355 | 355 | i = TAB_SIZE - ((int) col % TAB_SIZE); |
356 | 356 | col += i; |
357 | 357 | if (use_colors && visible_tabs) { |
| 358 | int m = (i - 1) / 2; |
358 | 359 | c = (p->style & ~MOD_CURSOR) | MOD_WHITESPACE; |
359 | | if (i > 2) { |
360 | | if (0 && (p->style & MOD_CURSOR)) { |
361 | | p->ch = ' '; |
362 | | } |
363 | | else { |
364 | | p->ch = 0x25C0; |
365 | | p->style |= MOD_WHITESPACE; |
366 | | } |
367 | | p++; |
368 | | while (--i > 1) { |
369 | | p->style = c; |
370 | | p->ch = 0x2500; |
371 | | p++; |
372 | | } |
373 | | p->style = c; |
374 | | p->ch = 0x25B6; |
375 | | p++; |
376 | | } else if (i > 1) { |
377 | | p->style |= MOD_WHITESPACE; |
378 | | p->ch = 0x2190; |
379 | | p++; |
380 | | p->style = c; |
381 | | p->ch = 0x2192; |
382 | | p++; |
383 | | } else { |
384 | | p->style |= MOD_WHITESPACE; |
385 | | p->ch = 0x2194; |
386 | | p++; |
| 360 | if (i > 0) { |
| 361 | while (i-- > 0) { |
| 362 | p->style = c; |
| 363 | p->ch = (i != m) ? ' ' : 0x2192; |
| 364 | ++p; |
| 365 | } |
387 | 366 | } |
388 | 367 | } else if (use_colors && visible_tws && q >= tws) { |
389 | 368 | if (0 && (p->style & MOD_CURSOR)) { |