diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-02-23 15:14:35 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2009-02-23 15:14:35 +0000 |
commit | 2598f7b63e147f15f07a2b66d89fd97863196993 (patch) | |
tree | 596c59ca735d3a062a45aed44f4481e0d513fd87 /packages/mc/mc-4.6.2/00-76-utf8-hotlist-highlight.patch | |
parent | a7653f0e9ca08570b88dc35c9e9866eb64818ce8 (diff) |
mc: Updated to 4.6.2 + openSUSE and Debian UTF-8 patches.
Diffstat (limited to 'packages/mc/mc-4.6.2/00-76-utf8-hotlist-highlight.patch')
-rw-r--r-- | packages/mc/mc-4.6.2/00-76-utf8-hotlist-highlight.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/mc/mc-4.6.2/00-76-utf8-hotlist-highlight.patch b/packages/mc/mc-4.6.2/00-76-utf8-hotlist-highlight.patch new file mode 100644 index 0000000000..38e0337ad6 --- /dev/null +++ b/packages/mc/mc-4.6.2/00-76-utf8-hotlist-highlight.patch @@ -0,0 +1,23 @@ +Highlight the lines of hotlist in full width. + +================================================================================ +--- mc-4.6.2/src/widget.c ++++ mc-4.6.2/src/widget.c +@@ -1994,6 +1994,7 @@ + { + WLEntry *e; + int i; ++ int j; + int sel_line; + Dlg_head *h = l->widget.parent; + int normalc = DLG_NORMALC (h); +@@ -2024,7 +2025,8 @@ + text = e->text; + e = e->next; + } +- tty_printf (" %-*s ", l->width-2, name_trunc (text, l->width-2)); ++ j = columns_to_bytes (name_trunc (text, l->width-2), l->width-2); ++ tty_printf (" %-*s ", j, name_trunc (text, l->width-2)); + } + l->cursor_y = sel_line; + if (!l->scrollbar) |