Highlight the lines of hotlist in full width.
diff -Naur mc-4.6.2.orig/src/widget.c mc-4.6.2/src/widget.c
old
|
new
|
|
2027 | 2027 | { |
2028 | 2028 | WLEntry *e; |
2029 | 2029 | int i; |
| 2030 | int j; |
2030 | 2031 | int sel_line; |
2031 | 2032 | Dlg_head *h = l->widget.parent; |
2032 | 2033 | int normalc = DLG_NORMALC (h); |
… |
… |
|
2057 | 2058 | text = e->text; |
2058 | 2059 | e = e->next; |
2059 | 2060 | } |
2060 | | tty_printf (" %-*s ", l->width-2, name_trunc (text, l->width-2)); |
| 2061 | j = columns_to_bytes (name_trunc (text, l->width-2), l->width-2); |
| 2062 | tty_printf (" %-*s ", j, name_trunc (text, l->width-2)); |
2061 | 2063 | } |
2062 | 2064 | l->cursor_y = sel_line; |
2063 | 2065 | if (!l->scrollbar) |