Andrew Borodin
1192d34bd1
Clean up some empty lines.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:46 +03:00
Slava Zanko
feb733663f
Code indentation in lib directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:20 +03:00
Andrew Borodin
4892044e71
Remove extra check before mc_search free() call.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:20 +03:00
Andrew Borodin
54a9e72250
Some optimization of loops in translation functions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:48:39 +02:00
Andrew Borodin
b6fd832a8a
Create strings with small preallocated sizes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:48:39 +02:00
Andrew Borodin
69cebb9984
mc_search__cond_struct_new_regex_ci_str(): get rid of extra string duplication.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Andrew Borodin
5cac8caabe
Minor optimization of translation function arguments.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:48:38 +02:00
Slava Zanko
601047b6a1
Avoid extra-allocation of string while prepare to regexp-search.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Slava Zanko
8d59d66188
Removed mc_search_cond_t->len (used mc_search_cond_t->str->len instead).
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Slava Zanko
863f1ec174
Fixed bit operations in mc_search_regex__process_append_str()
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Slava Zanko
3934c6fb8e
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>
2010-11-01 15:48:38 +02:00
Denys Vlasenko
12891835f4
Ticket #2327 : Can't put ? into a new name.
...
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>
2010-10-27 13:48:32 +03:00
Andrew Borodin
bfbac0c5d8
Reimplemened codepages storage using GPtrArray.
...
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>
2010-10-19 18:25:53 +04:00
Slava Zanko
c5dfdac5fc
Ticket #2123 : Fix to properly parse the replacement string
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-08 22:15:09 +03:00
Slava Zanko
5c95084e2f
Fixed bug with copy dir '\\\\' to anoter. Directoty whis this name was automatically renamed to '\\'
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-07 16:43:00 +03:00
Slava Zanko
3facc59837
use g_string_sized_new() instread of g_string_new() to avoid often reallocation action
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-07 14:12:45 +03:00
Slava Zanko
3aa6758f4f
identation of code
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-07 14:06:41 +03:00
Slava Zanko
973bbb70a2
Ticket #2123 : crash while copying into directory named "????"
...
1. create directory named "????" and enter into this directory
2. point at any file in other panel
3. press F5 and Enter
Segfault
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-07 14:06:41 +03:00
Andrew Borodin
ec7b039588
Ticket #2243 : code cleanup before 4.7.3 release.
...
Removed unneeded breaks from switch operators.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-05 21:35:18 +04:00
Andrew Borodin
aa0d96bd8b
Ticket #1646 : removed leading and trailing spaces in i18n resources.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 21:42:46 +04:00
Andrew Borodin
7e5f4a01c0
i18n of search error messages.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-04 23:34:28 +04:00
Andrew Borodin
e70db42deb
Grammar.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-05 16:24:13 +04:00
Andrew Borodin
5b68413e62
Applied MC indentation policy.
...
Applied MC indentation policy to all files modified in this branch
with some simple manual modifications.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:22 +04:00
Andrew Borodin
e94c1393e6
Fixed memory leak in mc_search__cond_struct_new_regex_accum_append().
...
Minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:22 +04:00
Andrew Borodin
4451e07fab
Ticket #2028 : fixed memory leak in mc_search__hex_translate_to_regex() function.
...
Thanks Vit Rosin for the original patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-23 14:35:43 +03:00
Slava Zanko
e07ba16b3b
Moved strecape.[ch] into library
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:25 +02:00
Slava Zanko
25155c311a
Move all interface includes from subdirs lib/*/*.h into lib/*.h
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:25 +02:00
Slava Zanko
7815c9c7a8
Reorganization of usage external libs
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:24 +02:00
Slava Zanko
cd4dbf3a09
Changes for build after moving strutil into lib
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:24 +02:00
Slava Zanko
93dbc46e9c
Reorganization of sources. Part 1.
...
* moved src/global.h into lib/global.h
* moved glibcompat.[ch] from ./src/ into ./lib/
* moved fs.h from ./src/ into ./lib/
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:23 +02:00
Slava Zanko
39d5b94cac
Reorganized pathes to files in '#include' directives
2010-01-26 10:30:22 +02:00
Slava Zanko
ddb9ada2e8
Changes in sources matched with mass movement of $(srcdir)/src/*/ into $(srcdir)/lib/*/
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:22 +02:00
Slava Zanko
4f11e4b665
Massive moved some dirs from $(srcdir)/src into $(srcdir)/lib
...
Moved subdirs:
* filehighlight
* mcconfig
* search
* skin
* tty
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:22 +02:00