mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 13:02:01 +03:00
fix mark tab and spaces
This commit is contained in:
parent
7fbff4fa86
commit
427ecef234
@ -398,10 +398,13 @@ edit_draw_this_line (WEdit *edit, long b, long row, long start_col,
|
|||||||
i = TAB_SIZE - ((int) col % TAB_SIZE);
|
i = TAB_SIZE - ((int) col % TAB_SIZE);
|
||||||
col += i;
|
col += i;
|
||||||
if (use_colors && visible_tabs) {
|
if (use_colors && visible_tabs) {
|
||||||
c = (p->style & ~MOD_CURSOR) | MOD_WHITESPACE;
|
if (p->style & MOD_MARKED)
|
||||||
|
c = (p->style);
|
||||||
|
else
|
||||||
|
c = p->style | MOD_WHITESPACE;
|
||||||
if (i > 2) {
|
if (i > 2) {
|
||||||
p->ch = '<';
|
p->ch = '<';
|
||||||
p->style |= MOD_WHITESPACE;
|
p->style = c;
|
||||||
p++;
|
p++;
|
||||||
while (--i > 1) {
|
while (--i > 1) {
|
||||||
p->ch = '-';
|
p->ch = '-';
|
||||||
@ -413,14 +416,14 @@ edit_draw_this_line (WEdit *edit, long b, long row, long start_col,
|
|||||||
p++;
|
p++;
|
||||||
} else if (i > 1) {
|
} else if (i > 1) {
|
||||||
p->ch = '<';
|
p->ch = '<';
|
||||||
p->style |= MOD_WHITESPACE;
|
p->style = c;
|
||||||
p++;
|
p++;
|
||||||
p->ch = '>';
|
p->ch = '>';
|
||||||
p->style = c;
|
p->style = c;
|
||||||
p++;
|
p++;
|
||||||
} else {
|
} else {
|
||||||
p->ch = '>';
|
p->ch = '>';
|
||||||
p->style |= MOD_WHITESPACE;
|
p->style = c;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
} else if (use_colors && visible_tws && q >= tws) {
|
} else if (use_colors && visible_tws && q >= tws) {
|
||||||
|
Loading…
Reference in New Issue
Block a user