]> TLD Linux GIT Repositories - packages/mc.git/commitdiff
- disable case sensitive file search by default
authorMarcin Krol <hawk@tld-linux.org>
Mon, 7 Jul 2014 23:43:32 +0000 (23:43 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 7 Jul 2014 23:43:32 +0000 (23:43 +0000)
mc-file-find-case-insensitive.patch [new file with mode: 0644]

diff --git a/mc-file-find-case-insensitive.patch b/mc-file-find-case-insensitive.patch
new file mode 100644 (file)
index 0000000..ce43e74
--- /dev/null
@@ -0,0 +1,21 @@
+diff -ur mc-4.8.12.orig/src/filemanager/find.c mc-4.8.12/src/filemanager/find.c
+--- mc-4.8.12.orig/src/filemanager/find.c      2014-04-01 10:54:01.000000000 +0000
++++ mc-4.8.12/src/filemanager/find.c   2014-07-07 19:49:44.402848680 +0000
+@@ -291,7 +291,7 @@
+     loaded = TRUE;
+     options.file_case_sens =
+-        mc_config_get_bool (mc_main_config, "FindFile", "file_case_sens", TRUE);
++        mc_config_get_bool (mc_main_config, "FindFile", "file_case_sens", FALSE);
+     options.file_pattern =
+         mc_config_get_bool (mc_main_config, "FindFile", "file_shell_pattern", TRUE);
+     options.find_recurs = mc_config_get_bool (mc_main_config, "FindFile", "file_find_recurs", TRUE);
+@@ -301,7 +301,7 @@
+         mc_config_get_bool (mc_main_config, "FindFile", "file_all_charsets", FALSE);
+     options.content_use = mc_config_get_bool (mc_main_config, "FindFile", "content_use", TRUE);
+     options.content_case_sens =
+-        mc_config_get_bool (mc_main_config, "FindFile", "content_case_sens", TRUE);
++        mc_config_get_bool (mc_main_config, "FindFile", "content_case_sens", FALSE);
+     options.content_regexp =
+         mc_config_get_bool (mc_main_config, "FindFile", "content_regexp", FALSE);
+     options.content_first_hit =