summaryrefslogtreecommitdiff
path: root/packages/mc/mc-4.6.2/00-77-utf8-filename-search-highlight.patch
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2009-02-23 15:14:35 +0000
committerutx@penguin.cz <utx@penguin.cz>2009-02-23 15:14:35 +0000
commit2598f7b63e147f15f07a2b66d89fd97863196993 (patch)
tree596c59ca735d3a062a45aed44f4481e0d513fd87 /packages/mc/mc-4.6.2/00-77-utf8-filename-search-highlight.patch
parenta7653f0e9ca08570b88dc35c9e9866eb64818ce8 (diff)
mc: Updated to 4.6.2 + openSUSE and Debian UTF-8 patches.
Diffstat (limited to 'packages/mc/mc-4.6.2/00-77-utf8-filename-search-highlight.patch')
-rw-r--r--packages/mc/mc-4.6.2/00-77-utf8-filename-search-highlight.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/mc/mc-4.6.2/00-77-utf8-filename-search-highlight.patch b/packages/mc/mc-4.6.2/00-77-utf8-filename-search-highlight.patch
new file mode 100644
index 0000000000..912d8eb72b
--- /dev/null
+++ b/packages/mc/mc-4.6.2/00-77-utf8-filename-search-highlight.patch
@@ -0,0 +1,17 @@
+Quick filename search (^S) highlights correct width.
+
+================================================================================
+--- mc-4.6.2/src/screen.c
++++ mc-4.6.2/src/screen.c
+@@ -771,8 +771,10 @@
+ widget_move (&panel->widget, llines (panel)+3, 1);
+
+ if (panel->searching){
++ int j;
+ attrset (INPUT_COLOR);
+- tty_printf ("/%-*s", panel->widget.cols-3, panel->search_buffer);
++ j = columns_to_bytes (panel->search_buffer, panel->widget.cols-3);
++ tty_printf ("/%-*s", j, panel->search_buffer);
+ attrset (NORMAL_COLOR);
+ return;
+ }