updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / mc-suse / 00-76-utf8-hotlist-highlight.patch
blob72393909993d284734f5bde056625ee6105e9320
1 Highlight the lines of hotlist in full width.
3 ================================================================================
4 --- mc-4.6.2-pre1/src/widget.c
5 +++ mc-4.6.2-pre1/src/widget.c
6 @@ -1995,6 +1995,7 @@
8 WLEntry *e;
9 int i;
10 + int j;
11 int sel_line;
12 Dlg_head *h = l->widget.parent;
13 int normalc = DLG_NORMALC (h);
14 @@ -2025,7 +2026,8 @@
15 text = e->text;
16 e = e->next;
18 - tty_printf (" %-*s ", l->width-2, name_trunc (text, l->width-2));
19 + j = columns_to_bytes (name_trunc (text, l->width-2), l->width-2);
20 + tty_printf (" %-*s ", j, name_trunc (text, l->width-2));
22 l->cursor_y = sel_line;
23 if (!l->scrollbar)