Commit Graph

11588 Commits

Author SHA1 Message Date
Slava Zanko
fd3c93df07 Merge branch '1868_replace_regexp_hangup' into 4.8.1-stable
* 1868_replace_regexp_hangup:
  Code optimization: memory allocation and free moved outside of loop.
  Ticket #1868: mcedit hang up on replace with regexp.
2012-04-09 12:34:03 +03:00
Slava Zanko
5f98155496 Code optimization: memory allocation and free moved outside of loop.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:33:27 +03:00
Slava Zanko
d2b72ad239 Ticket #1868: mcedit hang up on replace with regexp.
steps to reproduce:

 * create/open dummy file
 * replace (with regexp enabled)
 * on search string, put: ^ or $
 * on replacement string, put *any string*
 * on confirm replace, select All

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:33:27 +03:00
Slava Zanko
4b9d746741 Merge branch '2764_pcre_case_sentitive' into 4.8.1-stable
* 2764_pcre_case_sentitive:
  Ticket #2764: Case sensitive search with SEARCH_TYPE_PCRE
2012-04-09 11:34:57 +03:00
vokac
a99d2b2588 Ticket #2764: Case sensitive search with SEARCH_TYPE_PCRE
When mc is compiled with SEARCH_TYPE_PCRE (and without SEARCH_TYPE_GLIB,
e.g. on systems with old glib < 2.14) case (in)sensitive search works in opposite.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 11:34:37 +03:00
Andrew Borodin
22785c8823 Ticket #2774: mc.ext: comment out the empty rule for texinfo.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-07 16:54:44 +04:00
Andrew Borodin
f5c4cd763f Tweak EN and RU man pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 16:14:57 +04:00
Andrew Borodin
69b580d1a0 Merge branch '1851_xdg_fix' into 4.8.1-stable
* 1851_xdg_fix:
  Tweak description of MC_HOME environment variable.
  Ticket #1851: fixed support of XDG_* shell variables
2012-04-04 16:00:29 +04:00
Andrew Borodin
41056150e8 Tweak description of MC_HOME environment variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 15:57:11 +04:00
Andrew Borodin
a8b8a82687 Ticket #1851: fixed support of XDG_* shell variables
...broken in 13a660d2e0

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 15:57:11 +04:00
Slava Zanko
f3a2e41872 Merge branch '2663_background_segfault' into 4.8.1-stable
* 2663_background_segfault:
  Ticket #2663: Segmentation fault while background copying
2012-04-04 14:01:32 +03:00
Slava Zanko
9f78c3fc4f Ticket #2663: Segmentation fault while background copying
Action to reproduce bug:
Start copy/move file/files (around 100mb+) in background

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-04 14:01:21 +03:00
Andrew Borodin
108cdbfaca Ticket #2769: crash on compare files if one panel is not in the listing mode.
Added check of panel types before run file comparision.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 14:03:43 +04:00
Sergei Trofimovich
a29c6150b9 ebuild.syntax: added 'pushd' and 'popd' keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-04 14:03:23 +04:00
Slava Zanko
1e92692220 Merge branch '2692_manpage_broken_date' into 4.8.1-stable
* 2692_manpage_broken_date:
  Ticket #2692: Date not set properly in manpage
2012-04-02 13:51:30 +03:00
Slava Zanko
344130d18d Ticket #2692: Date not set properly in manpage
After installing mc-4.8.1 the footer of the manpage says:
MC Version VER @DATE_OF_MAN_PAGE@ MC(1)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-02 13:51:05 +03:00
Andrew Borodin
b7eb59e485 Ticket #2384: allow rebind Fx keys in the file manager.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-02 13:38:22 +03:00
Andrew Borodin
ae61b7286b Merge branch '2386_LANG_case_insensitive' into 4.8.1-stable
* 2386_LANG_case_insensitive:
  Ticket #2386: interpretation of LANG variable needs to be case insensitive.
2012-03-28 13:11:13 +04:00
Andrew Borodin
d474cad4e3 Ticket #2386: interpretation of LANG variable needs to be case insensitive.
On Mac OS X, in the iTerm2, when the LANG variable is set to en_US.utf-8
mcedit specifically does not correctly accept input (every character press
is interpreted as a '.'). However when LANG is set to en_US.UTF-8 mcedit
works correctly (see also http://code.google.com/p/iterm2/issues/detail?id=204).

On Linux, nl_langinfo(CODESET) returns upper case UTF-8 whether the LANG is set
to utf-8 or UTF-8.
On Mac OS X, it returns the same case as the LANG input.

So let tranform result of nl_langinfo(CODESET) to upper case unconditionally.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-28 13:10:37 +04:00
Slava Zanko
246ce0b350 Merge branch '2761_editor_save_as_dir' into 4.8.1-stable
* 2761_editor_save_as_dir:
  Ticket #2761: save file on top of existing directory changes dir's permissions
2012-03-27 11:43:04 +03:00
Slava Zanko
630b6a491f Ticket #2761: save file on top of existing directory changes dir's permissions
Steps to reproduce:

mkdir foo
chmod 0700 foo
mcedit bar
ls -ld foo
drw-r--r-- 1 slyfox users 0 Mar 22 22:10 foo

We've lost dir's permissions.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-27 11:42:44 +03:00
Slava Zanko
d79db98927 Merge branch '2278_preserve_attrs_if_dest_exists' into 4.8.1-stable
* 2278_preserve_attrs_if_dest_exists:
  Ticket #2278: Problem in the Copy operation
2012-03-26 11:06:03 +03:00
Slava Zanko
82dcbe2194 Ticket #2278: Problem in the Copy operation
Previously, copying a file does not change access permissions of the destination
file if the check box "Preserve attributes" in the Copy window is not set.
For some time it is not so: if you uncheck the "Preserve attributes" then access
permissions of the destination file are set in accordance with the value of
umask, which can lead to information disclosure(i.e. security problem).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-26 11:04:43 +03:00
Slava Zanko
4fd3dee93a Merge branch '2755_zero_length_preallocate' into 4.8.1-stable
* 2755_zero_length_preallocate:
  Ticket #2755: cannot copy zero-length files with [Preallocate space] option
2012-03-25 15:23:17 +03:00
Slava Zanko
97e72517c3 Ticket #2755: cannot copy zero-length files with [Preallocate space] option
If [Preallocate space] option is enabled, MC can't copy zero-length files:
"Cannot preallocate space for target file ... Invalid argument (22)"

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-25 15:22:57 +03:00
Slava Zanko
a68678cbee Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-20 11:30:24 +03:00
Slava Zanko
db2a45161b Updated translations from transifex.net
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-20 11:30:23 +03:00
Slava Zanko
70d6e5a09f Merge branch '2741_cleanup' into 4.8.1-stable
* 2741_cleanup: (22 commits)
  Ticket #2748: wrong message in menu item "Delete tagged files if a copy exists in the other directory".
  (extfs_get_path_mangle): renamed to extfs_get_path_int
  Typo fix in message
  (expand_format): minor optimization.
  Fixed preprocessor conditions.
  find.c: drop support of legacy config option.
  Added macros for Layout and Misc sections of main config file.
  Reorder fields in mc_global struct and change type for some of them.
  Removed useless return.
  Editor: avoid extra screen redraw.
  editdraw.c: removed unused defines.
  Tweak key bindings.
  Tweak background operations support.
  Removed mcserv.8 target.
  lib/tty/win.c: includes cleanup.
  Include sys/param.h conditionally.
  Check assert.h header and use it conditionally.
  Minor optimization of memory allocation for string copy.
  (examine_cd): split in two functions to be unit test friendly.
  Removed check of unused functions.
  ...
2012-03-19 19:26:29 +03:00
Victor Homyakov
27bcf2ee98 Ticket #2748: wrong message in menu item "Delete tagged files if a copy exists in the other directory". 2012-03-19 13:34:34 +03:00
Andrew Borodin
6fc8676c34 (extfs_get_path_mangle): renamed to extfs_get_path_int
and chnaged type of returned value to pointer to constant.

Related changes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:25 +03:00
Slava Zanko
57105745e2 Typo fix in message
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-19 13:34:22 +03:00
Andrew Borodin
457dbb98bf (expand_format): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
96507a8ae0 Fixed preprocessor conditions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
247c8948ca find.c: drop support of legacy config option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
4ef9bf5119 Added macros for Layout and Misc sections of main config file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
885593b413 Reorder fields in mc_global struct and change type for some of them.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
38cecd4dc3 Removed useless return.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
85f57fc4c1 Editor: avoid extra screen redraw.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
a037e6dcaf editdraw.c: removed unused defines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
b33b64dc8c Tweak key bindings.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
b80864431c Tweak background operations support.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
e1b4dc7f1e Removed mcserv.8 target.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
c0e26f43fd lib/tty/win.c: includes cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
1dc00dc3d2 Include sys/param.h conditionally.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
646de3f88f Check assert.h header and use it conditionally.
assert(3) should be replaced with g_assert().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
87fc4a2097 Minor optimization of memory allocation for string copy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
19919b1831 (examine_cd): split in two functions to be unit test friendly.
Forgotten commit. This one must be before
3a2db1ee36.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:33:40 +03:00
Andrew Borodin
92676ef438 Removed check of unused functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:17:55 +03:00
Andrew Borodin
08f21fd096 Removed check of unused header files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:17:55 +03:00
Andrew Borodin
b471e15288 Ticket #2741: code cleanup before 4.8.1-stable release.
Removes references to AC_HEADER_STDC macro, marked as obsolescent
in the Autoconf 2.60 release.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:17:55 +03:00