Commit Graph

11572 Commits

Author SHA1 Message Date
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
Andrew Borodin
f17f7cd760 Allow setup mc home directory using MC_HOME environment variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:59:01 +03:00
Andrew Borodin
20b8016840 Tweak arguments parsing
...to allow to show info about mc options regardless of the fact that
configuration directories cannot be created.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:58:56 +03:00
Andrew Borodin
176ae14711 Handle error of mc main loop.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:50:57 +03:00
Andrew Borodin
bb1e8f0e37 Ticket #2738: handle errors at mc sturtup stage.
Don't run MC if configuration directory cannot be created.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:49:06 +03:00
Andrew Borodin
62b6023c08 Support of use ~ as home directory in hotlist.
Expand tilde while vfs path canonicalize.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:38:13 +03:00
Andrew Borodin
b534ce73b7 Ticket #2747: fixups of hotlist loading.
Path transformation while loading hotlist breaks shell variable
substitution.
Load paths from hotlist as is withowt any transformation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:35:34 +03:00
Andrew Borodin
dec60116d7 Support of disable of shell variables substitution in autocompletion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:56 +03:00
Andrew Borodin
3a2db1ee36 Added tests for examine_cd() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:41 +03:00
Andrew Borodin
1233059de6 Support of disable of shell variables substitution in the command line.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:20 +03:00
Andrew Borodin
e2c5363eb9 (strutils_unescape): allow disable shell variable substitution.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:05 +03:00
Andrew Borodin
8f57c243d0 Ticket #2451: allow do not variable substite in the command line.
Environment variable should not be substituted if escaping of dollar
sign is used: \$VAR.

Initial steps:
(do_cd): changed return type from int to gboolean.
(examine_cd): likewise and some cleanup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:10:51 +03:00
Andrew Borodin
0932051fd2 Fixup of getting stat info before file operation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 19:40:30 +03:00
idispatch
bd6afefeee Ticket #2708: Added ActionScript file syntax highlighting
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-08 10:45:16 +03:00
Andrew Borodin
036abc7286 Fixed location of hotlist query dialogs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:44:37 +03:00
Andrew Borodin
110886fde6 Added D_CENTER flag to query dialog flags
...to forced place a query dialog in the center of the screen.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:44:24 +03:00
Andrew Borodin
c8151646f6 Ticket #2521: fixup of panel size after layout change.
Now each layout type has independent options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-07 11:47:09 +03:00