Commit Graph

11759 Commits

Author SHA1 Message Date
Sergei Trofimovich
c494f7b3bb Merge branch '2768_do_panel_cd_fix'
* 2768_do_panel_cd_fix:
  Ticket #2768 ('make check' failed)
2012-04-02 20:22:42 +03:00
Sergei Trofimovich
41d093afaf Ticket #2768 ('make check' failed)
tests/.../do_panel_cd.c: fix test when 'HOME' contains trailing slashes.

Steps to reproduce:

    $ HOME=${HOME}/ make check
    Running suite(s): /src/filemanager
    cwd=/subvolumes/var_tmp/paludis/app-misc-mc-9999/temp
    mc_config_get_home_dir ()=/subvolumes/var_tmp/paludis/app-misc-mc-9999/temp/
    0%: Checks: 1, Failures: 1, Errors: 0
    do_panel_cd.c:86:F:Core:test_do_panel_cd_empty_mean_home:0: Assertion 'ret' failed

The patch adds home dir path normalization.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-02 20:22:27 +03:00
Slava Zanko
a8d317406b Merge branch '2692_manpage_broken_date'
* 2692_manpage_broken_date:
  Ticket #2692: Date not set properly in manpage
2012-04-02 13:44:01 +03:00
Slava Zanko
cd1f7773b1 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:43:19 +03:00
Sergei Trofimovich
ea82ca42ed ebuild.syntax: added 'pushd' and 'popd' keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-01 01:21:35 +03:00
Sergei Trofimovich
6d3b90247b tests/.../do_panel_cd.c: show patch mismath on test failure
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-31 22:10:40 +03:00
Ilia Maslakov
18df85a1d2 Merge branch '2763_help_dialog_fix'
* 2763_help_dialog_fix:
  Ticket #2763 (Last word of help links not clickable)
2012-03-28 14:04:53 +04:00
Egmont Koblinger
caf5a9e1b5 Ticket #2763 (Last word of help links not clickable)
The last word of hyperlinks in the interactive help don't act on mouse clicks.
    This also implies that one-word links can't be clicked at all.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-28 13:26:45 +04:00
Andrew Borodin
8059856fe1 Merge branch '2386_LANG_case_insensitive'
* 2386_LANG_case_insensitive:
  Ticket #2386: interpretation of LANG variable needs to be case insensitive.
2012-03-28 13:01:01 +04:00
Andrew Borodin
91ff90f87b 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:00:22 +04:00
Slava Zanko
835f72fcaf Merge branch '2761_editor_save_as_dir'
* 2761_editor_save_as_dir:
  Ticket #2761: save file on top of existing directory changes dir's permissions
2012-03-27 11:05:39 +03:00
Slava Zanko
2a5885fb7f 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:05:13 +03:00
Slava Zanko
3907f19a04 Merge branch '2278_preserve_attrs_if_dest_exists'
* 2278_preserve_attrs_if_dest_exists:
  code indentation
  Ticket #2278: Problem in the Copy operation
2012-03-26 10:59:43 +03:00
Ilia Maslakov
f0f39cb2a7 code indentation
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-26 10:12:24 +04:00
Slava Zanko
a58aee00cb 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 09:50:02 +04:00
Andrew Borodin
68e1b4f9c6 Tweak EN and RU man pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-25 18:44:58 +04:00
Slava Zanko
ec959ebc9e Merge branch '2759_edit_gzipped'
* 2759_edit_gzipped:
  Ticket #2759: Unable to edit gzipped files
2012-03-25 15:34:29 +03:00
Slava Zanko
d52b1dced1 Ticket #2759: Unable to edit gzipped files
Steps to reprosuce:

 *) dmesg| gzip -c9 > out.gz
 *) press F4 on out.gz file

Expected result: editor should be opened
Actual result: segmentation fault.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-25 15:34:08 +03:00
Slava Zanko
9d72cf5aa6 Merge branch '2758_cd_on_shell_link'
* 2758_cd_on_shell_link:
  Fixed creating string from relative non-local VFS.
  Ticket #2758: cd command not working in shell link
2012-03-25 15:28:59 +03:00
Slava Zanko
88483f5fac Fixed creating string from relative non-local VFS.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-25 15:28:45 +03:00
Slava Zanko
ecda2061f2 Ticket #2758: cd command not working in shell link
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-25 15:28:45 +03:00
Slava Zanko
7ae8530a69 Merge branch '2755_zero_length_preallocate'
* 2755_zero_length_preallocate:
  Ticket #2755: cannot copy zero-length files with [Preallocate space] option
2012-03-25 15:20:36 +03:00
Slava Zanko
49532ac834 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:20:17 +03:00
Andrew Borodin
e72a46acf9 Merge branch '2384_rebind_fx_keys'
* 2384_rebind_fx_keys:
  Ticket #2384: allow rebind Fx keys in the file manager.
2012-03-25 10:41:31 +04:00
Andrew Borodin
62f382b70e Ticket #2384: allow rebind Fx keys in the file manager.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-25 10:39:35 +04:00
Andrew Borodin
789ec67348 Merge branch '2756_menu'
* 2756_menu:
  Ticket #2756: fixed menu alignment.
2012-03-25 10:36:15 +04:00
Andrew Borodin
4cc0aefb16 Ticket #2756: fixed menu alignment.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-25 10:35:57 +04:00
Andrew Borodin
57369532d3 Merge branch '2762_second_arg'
* 2762_second_arg:
  Optimization of second panel directory setup.
  Ticket #2762: mc ignores second directory argument.
2012-03-24 17:20:42 +03:00
Andrew Borodin
87174bad44 Optimization of second panel directory setup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-24 17:20:26 +03:00
Andrew Borodin
188a20f333 Ticket #2762: mc ignores second directory argument.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-24 17:20:26 +03:00
Sergei Trofimovich
539f92cd97 misc/ebuild.syntax: added 'REQUIRED_USE', '[[' and ']]' as keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-23 19:03:31 +03:00
Ilia Maslakov
12e2058778 Merge branch '2757_mcedit_record_macro_fix'
* 2757_mcedit_record_macro_fix:
  Ticket #2757 (mcedit not record input chars)
2012-03-22 17:15:29 +04:00
Ilia Maslakov
02f4bb4a98 Ticket #2757 (mcedit not record input chars)
fixed trouble with internal editor macro engine introduced by commit #68a8745f6dd7ded9437317a694225d599745e983
    now record input char and commands.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-22 16:48:16 +04:00
Slava Zanko
d94d43176a Merge branch '2753_broken_hotlist'
* 2753_broken_hotlist:
  hotlist: fixed broken newly added entries.
  Ticket #2753: fixed entering to old-style path format.
2012-03-22 11:17:13 +03:00
Slava Zanko
408ba2a2de hotlist: fixed broken newly added entries.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-22 11:04:06 +03:00
Slava Zanko
296eec83eb Ticket #2753: fixed entering to old-style path format.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-22 11:04:06 +03:00
Andrew Borodin
5b84f7377c Merge branch '2754_run_mcedit_without_file'
* 2754_run_mcedit_without_file:
  Ticket #2754: mceedit can't run w/o file as parameter.
2012-03-22 09:54:32 +03:00
Andrew Borodin
529a7ba24c Ticket #2754: mceedit can't run w/o file as parameter.
Also fixed segfault while run `mc -v ""`.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-21 14:12:17 +03:00
Slava Zanko
91f6468215 Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-19 20:03:30 +03:00
Slava Zanko
a6f7a985bc Updated translations from transifex.net
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-19 20:03:30 +03:00
Slava Zanko
385e173f02 Merge branch '2740_cleanup'
* 2740_cleanup: (28 commits)
  Added new entry to the external panelize - "Modified git files".
  Disable resizable menu.
  Ticket #2748: wrong message in menu item "Delete tagged files if a copy exists in the other directory".
  Fixed handling actions in chmod dialog
  (extfs_get_path_mangle): renamed to extfs_get_path_int
  (extfs_get_path_mangle): minor optimization.
  (panel_reload): fixup of panel current directory obtain.
  (edit_load_file_from_filename): fixed file unlocking.
  Typo fix in message
  (expand_format): minor optimization.
  Added default shortcuts for dynamically resize panels.
  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.
  ...
2012-03-19 18:47:17 +03:00
Ilia Maslakov
4a940004ed Added new entry to the external panelize - "Modified git files".
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-19 17:00:29 +04:00
Andrew Borodin
21d0ff05f2 Disable resizable menu.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 16:21:09 +03:00
Andrew Borodin
903e184fff Merge branch '2738_handle_startup_errors'
* 2738_handle_startup_errors:
  Allow setup mc home directory using MC_HOME environment variable.
  Tweak arguments parsing
  Handle error of mc main loop.
  Ticket #2738: handle errors at mc sturtup stage.
2012-03-19 11:44:51 +03:00
Andrew Borodin
13a660d2e0 Allow setup mc home directory using MC_HOME environment variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:43:55 +03:00
Victor Homyakov
32f3a457f7 Ticket #2748: wrong message in menu item "Delete tagged files if a copy exists in the other directory". 2012-03-19 11:07:43 +03:00
Andrew Borodin
7b28a01feb Fixed handling actions in chmod dialog
...in according with 7e6ff9caf9

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:07:43 +03:00
Andrew Borodin
4f5c2e1649 (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 11:06:01 +03:00
Andrew Borodin
c2406adfce (extfs_get_path_mangle): minor optimization.
Avoid string allocation if it is really unneeded.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
8b8c9a4f34 (panel_reload): fixup of panel current directory obtain.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00