* 2396_find_whole_words:
Some optimization of loops in translation functions.
Create strings with small preallocated sizes.
mc_search__cond_struct_new_regex_ci_str(): get rid of extra string duplication.
Minor optimization of translation function arguments.
Avoid extra-allocation of string while prepare to regexp-search.
Removed mc_search_cond_t->len (used mc_search_cond_t->str->len instead).
Fixed bit operations in mc_search_regex__process_append_str()
Code cleanup for avoid compiler warnings
Ticket #2396 (Find File "Whole words" search bug)
when searching in files for non english word with "Whole words" set "on" - then nothig will be found
try search word: "время" and also "time" in next example:
'time'
Время
'Time'
'время'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
In case sensitive sort, the order of files and directories is following:
hidden dirs
dirs
hidden files
files
In case insensitive mode, directories are mixed and files are mixed too:
dirs (hidden and not are mixed)
files (hidden and not are mixed).
This commit defines the sort order independently of case sensitivity:
hidden dirs
dirs
hidden files
files
Files in UTF-8 locale require special handling: leading dot must not be
processed in g_utf8_casefold() funcion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2398_save_as_tilde_expand:
lib/lock.c: applied MC indentation policy.
Expand tilde while locking and unlocking files.
(edit_set_filename): expand tilde while setting file name.
Ticket #2398: tilde is not treated as home directory in editor "Save As" dialog.
* 2268_FISH_hide_panels_before_connect:
replace print_vfs_message to printf
Declarations of use_dash() and rotate_dash() were moved form lib/util.h to src/layout.h.
Apply code identation policy.
fish.c: some fixups.
Split function fish_open_archive_int() to fish_open_archive_pipeopen() and fish_open_archive_talk().
Ticket #2268 (FISH: hide panels before connecting)
The bug is caused by extra "continue" statement in case '*'/case '?' branch.
As a result, \ is added to converted string, but following N is not.
Example: when one renames many files using "*" to "a*z", "a*z" gets converted to "a\z" instead of correct "a\1z"
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 1424_non_config_files:
Fixed file list in RPM spec.
Install help files into /usr/share/mc/help instead of /usr/share/mc.
Install hint files into /usr/share/mc/hints instead of /usr/share/mc.
Load locale-specific info (help and hints) from /usr/share/mc only.
Reimplemened codepages storage using GPtrArray.
Install mc.charsets into /usr/share/mc instead of /etc/mc.
Minor optimization of [Special dirs] handling.
Install mc.lib into /usr/share/mc instead of /etc/mc.
Ticket #1424: install some files into /usr/share/mc instead of /etc/mc.
Added capability to load codepage list from /usr/share/mc/mc.charsets
and /etc/mc/mc.charsets and merge them then.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(tree_store_rescan): use g_list_foreach() to free content of list.
(process_special_dirs): get rid of extra memory allocation.
(should_skip_directory): type accuracy and variable intializations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
RPMLint shows the following warnings:
mc.i586: W: conffile-without-noreplace-flag /etc/mc/Syntax
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.lib
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.charsets
First step: install Syntax into /usr/share/mc instead of /etc/mc.
This also fixes the impossibility of editing of system-wide Syntax file
in mcedit under root (menu Options->Syntax file->System Wide).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Start mc, and make sure that at least one of the two displayed
directiories contains so many files that they cannot all be displayed
at once.
Click in this panel and hold the mouse button pressed, and then move
your mouse downwards. As you pass beyond the bottom of this list, it
should start scrolling.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>