1
1

9158 Коммитов

Автор SHA1 Сообщение Дата
Slava Zanko
35ed8c8df4 Update all translations.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 11:03:50 +02:00
Slava Zanko
63b0663860 Merge branch '1753_bad_mounpoint'
* 1753_bad_mounpoint:
  Ticket #1753: panel: bad mounpoint is no longer 'red' highlighted
2009-10-29 16:50:26 +02:00
Slava Zanko
12ed4d0b45 Ticket #1753: panel: bad mounpoint is no longer 'red' highlighted
Restored behavior with stale mountpoint (now handled as stale link).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-29 16:48:51 +02:00
Slava Zanko
f9fc03d5c5 Revert "unknown.syntax to something more useful"
This reverts commit a8d1c9be435939feec8897e5f4061b9a155a01a2.
2009-10-29 15:39:13 +02:00
Ilia Maslakov
478328812f Ticket #244
add shared clipboard support

Signed-off-by: Ilia Maslakov <il.smind@google.com>

    Fixed memory leaks. Type accuracy. Optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

    * fixed ctrl-g handler
    * change action names from InputKillSave to InputXStore and InputPaste to InputXPaste
    * update mc.keymap.default mc.keymap.emacs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-29 12:18:18 +00:00
Ilia Maslakov
359c9406d1 Ticket #1489 (indent block)
added bindings for shift block 'EditShiftBlockLeft', 'EditShiftBlockRight'
    EditShiftBlockLeft, EditShiftBlockRight - force move block without option_persistent_selections checking

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-29 07:58:30 +00:00
Slava Zanko
5ac43584cc Merge branch '1736_multilines_paste_from_xclip'
* 1736_multilines_paste_from_xclip:
  Ticket #1736: editor: X copy/paste eats newlines
2009-10-29 09:46:43 +02:00
Ilia Maslakov
a16b37c8e7 Ticket #1736: editor: X copy/paste eats newlines
1. Open empty file (<Shift-F4>)
2. Fill with data:

1234
5678
9abc

3. Mark contents (or any multiline text in, for example, firefox) with mouse (<Shift+MouseDown???>)
4. Insert somewhere below third line (<Shift+Insert>)
5. Newlines are eaten (xterm)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-29 09:46:20 +02:00
Ilia Maslakov
91c7dbb71c Ticket #1724 (forgotten hotkeys)
* fixed binding in mc.keymap.default and mc.keymap.emacs
    for CmdCopyCurrentTagged, CmdCopyOtherTagged,
    CmdCopyCurrentPathname, CmdCopyOtherPathname
    * fixed typo

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-29 06:23:51 +00:00
Slava Zanko
c0575fff3f Merge branch '1703_menubar_colorpair'
* 1703_menubar_colorpair:
  Fixed width calculation of Buttonbar widget.
  Ticket #1703: SKIN: Make own colorpairs for buttonbar widget
2009-10-29 00:03:27 +02:00
Slava Zanko
b62aece7eb Fixed width calculation of Buttonbar widget.
Also Labels on buttonbar aligned to left side.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-29 00:00:26 +02:00
Slava Zanko
742eae18d2 Ticket #1703: SKIN: Make own colorpairs for buttonbar widget
Now buttonbar have own colorpairs:

[buttonbar]
    hotkey=red;black
    button=yellow;cyan

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 17:50:46 +02:00
Ilia Maslakov
d98e14de49 Ticket #1600 (incorrect drawing hint)
drop "LANGUAGE" from checking locale.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-28 12:17:02 +00:00
Slava Zanko
09d8293043 Merge branch '1656_lack_rights'
* 1656_lack_rights:
  Fix segfault in charset confirmation dialog at start of mc.
  Code cleanup for compile with new CFLAGS value.
  Added debug options for --enable-maintainer mode
  Ticket #1656: Incorrect processing of cases the lack of rights to save preferences.
2009-10-28 13:38:18 +02:00
Slava Zanko
9c284e99c2 Fix segfault in charset confirmation dialog at start of mc.
When config files is unaccesible, doalig was crashed after 'Esc' pressing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko
e7c6d59e63 Code cleanup for compile with new CFLAGS value.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko
3518f7c585 Added debug options for --enable-maintainer mode
Also, added extra warnings and now all warnongs threaded as errors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko
c9b4b0159d Ticket #1656: Incorrect processing of cases the lack of rights to save preferences.
In the case where insufficient rights to the contents of the directory ~/.mc/* to
save preferences I get "settings saved in ~ /.mc/ini", but really nothing is saved.

It would be correct to issue a message like "Not enough permissions to save the ~/.mc/ini"

Also, when autosave should be issued a message about the lack of rights.

This branch will check rights of config-files.

testCase:
 *) chmod 0400 ~/.mc
 *) run mc

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:39 +02:00
Andrew Borodin
45d8208ff6 Merge branch '1750_view_next_prev_file'
* 1750_view_next_prev_file:
  Sync argument name of mcview_viewer() function in header and in source files.
  Ticket #1750: fix of view next/prev file in viewer.
2009-10-28 14:32:06 +03:00
Andrew Borodin
00e267c2e0 Sync argument name of mcview_viewer() function in header and in source files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-28 14:31:38 +03:00
Andrew Borodin
3d1114652f Ticket #1750: fix of view next/prev file in viewer.
To view the next (C-f) of previous (C-f) file in viewer,
the quit from viewer is required now.
This commit restores the previous behavior.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-28 14:31:38 +03:00
Slava Zanko
35415bbcd8 Merge branch '1748_tlz_extention'
* 1748_tlz_extention:
  Ticket #1748: lzma archives with .tlz extention are not recognized as archives
2009-10-28 13:01:46 +02:00
Slava Zanko
575f996e0d Ticket #1748: lzma archives with .tlz extention are not recognized as archives
Attempting to open a .tlz lzma archive fails - error 'xxx.tlz doesn't look like a tar archive'.
If the file is renamed to .tar.lzma, it is opened without problems.

Fix issue: add recognize of '.tlz' extention.

Refactoring: avoid calls of strlen() function

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:00:37 +02:00
Slava Zanko
9c854e73d4 Merge branch '1500_segfault_on_bg_copy'
* 1500_segfault_on_bg_copy:
  Fixed problems:
  Ticket #1500: Segmentation fault while background copying
2009-10-28 12:05:36 +02:00
Alexander Moiseenko
936727622d Fixed problems:
* When try to replace existing file in background operation
  assertion raised (created operations for initialization ctx->ui for background):
  ** (mc:25716): CRITICAL **: file_progress_real_query_replace: assertion `ctx->ui != NULL' failed

 * Process has been already done, but still draw in list (C-x j)

 * Process is stopped or worked, remove operation don't hide process from list, but kill it

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 12:05:07 +02:00
Alexander Moiseenko
81f5b5e0b8 Ticket #1500: Segmentation fault while background copying
Test case:
 * create file with name "test" in "tmp" directory (for example)
 * create directory with same name ("test") in other "tmp2" directory (for example)
 * try to copy or move file "test" into "tmp2" in background mode
 * wait for some time

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 12:05:06 +02:00
Slava Zanko
720eca3fa3 Merge branch '1642_fstype'
* 1642_fstype:
  Ticket #1642: filegui.c contains Linux-specific things
2009-10-28 10:38:38 +02:00
sfionov
1551db2f9f Ticket #1642: filegui.c contains Linux-specific things
mc 4.7.0-pre1 introduced dynamic "Save attributes" checkbox value in Copy/Move dialog.
But code is Linux-specific, and not even isolated by macros.

I suggest to add code specific for BSD and SVR4 systems.

In BSD systems (MacOS X, NetBSD, FreeBSD) there is statfs.f_fstypename which contains name of filesystem.
Valid FS names are: msdos, msdosfs (FreeBSD), ntfs, smbfs, procfs, fusefs (BSD), fusefs_subfstype (Mac)

In SVR4 systems (Solaris and other SVR4 Unixes) there are statvfs.f_basetype and statvfs
syscall instead of statfs and also autotools define STAT_STATVFS.
Valid FS names are: pcfs, proc, ntfs, fuse, smbfs

(Note that NetBSD 3.0+ also use statvfs but with BSD syntax.)

For all other OSes we simply return 1.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 10:38:20 +02:00
Ilia Maslakov
ca79091215 added skin 'Dark FAR' darkfar.ini
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-28 08:28:54 +00:00
Slava Zanko
ff860abd70 Merge branch '119_conf_option_preserve_attributes'
* 119_conf_option_preserve_attributes:
  Ticket #119: Persistent global configuration option for "Preserve attributes" wanted
2009-10-27 23:21:31 +02:00
Slava Zanko
27cc9ac15e Ticket #119: Persistent global configuration option for "Preserve attributes" wanted
Currently, there is no way to change the defaults. The file mask
dialog options are not persistent.

Added new config option 'copymove_persistent_attr'. If this option is equal to '0'
then 'Preserve attributes' in copy/move dialog will always switched off.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 23:20:48 +02:00
Slava Zanko
2445ccf9b9 Merge branch '1691_minus_signs_in_mans'
* 1691_minus_signs_in_mans:
  Set of patches to escape minus signs in mans by Denis Briand.
2009-10-27 23:00:40 +02:00
Yury V. Zaytsev
6f7f14ab50 Set of patches to escape minus signs in mans by Denis Briand.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 22:53:03 +02:00
Tomasz Pala
6d5cccc623 Ticket #1659: Darker color style (gotar.ini)
This is raw commit into master.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 22:45:34 +02:00
Slava Zanko
ea1a2abdf6 Merge branch '1674_syntax_highlightings'
* 1674_syntax_highlightings:
  Fixed error of opening yum *.repo files.
  unknown.syntax to something more useful
  Yacc/Bison syntax added
  added new syntax file 'filehighlight.syntax'; hah
  Syntax file for java .properties format
2009-10-27 20:56:08 +02:00
Slava Zanko
dcd628dda9 Fixed error of opening yum *.repo files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 17:48:54 +02:00
Vladimir
a8d1c9be43 unknown.syntax to something more useful
IMO, it would be nice to use attached unknown.syntax
file from http://mc.linuxinside.com/cgi-bin/dir.cgi instead the current one.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 17:48:49 +02:00
SZABO Gergely
09f8afa8b6 Yacc/Bison syntax added
Syntax: file extensions y/ypp/yxx added as Yacc/Bison Parser.
yxx.syntax added based cxx.syntax.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 17:48:42 +02:00
Balwinder S Dheeman
dc49f2db3e added new syntax file 'filehighlight.syntax'; hah
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 17:48:34 +02:00
thorsky
ea083f119b Syntax file for java .properties format
As the format is basically a set of key/value pairs, but allows a number of ways to write them,
syntax file tries hard to highlight them all correctly. Plus highlights some specific tokens that can be found in values.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 17:48:23 +02:00
Slava Zanko
143f078738 Merge branch '1718_suse_b_letter_in_prompt'
* 1718_suse_b_letter_in_prompt:
  Ticket #1718: OpenSuse: Showing 'B' artefact in command line of user 'root'
2009-10-27 14:43:14 +02:00
pavlinux
ad8e1563d4 Ticket #1718: OpenSuse: Showing 'B' artefact in command line of user 'root'
This patch was grabbed from Russian fork (ru-fork). Original commit message:

[COMMAND LINE]:  Fix SUSE gabage, letter B in command prompt under root!  Yessssssss! :)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 14:42:42 +02:00
Ilia Maslakov
467d833ac3 Ticket #46 (mcedit: check POSIX newline at end of file)
* added warning dialog (showed before save/save as)
    * added option "editor_check_new_line"
    * changed dialog 'Edit Save Mode' (added check box 'Check POSIX new line')

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    * Redesing of 'Edit Save Mode' dialog.
    * Added hotkeys in 'Edit Save Mode' dialog.
    * Modified warning message, minor optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-27 12:08:45 +00:00
Slava Zanko
47ee28f6eb Merge branch '1627_glib_macros_fix'
* 1627_glib_macros_fix:
  Ticket #1627: glib macros fix.
2009-10-27 11:42:43 +02:00
Slava Zanko
bf5b6f368b Ticket #1627: glib macros fix.
This is incomplete copy of same glib-function.
For older glib (less than 2.13) functional is enought.
For full version of glib welcome to glib update.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 11:42:19 +02:00
Ilia Maslakov
d449c5f383 Ticket #1724 (fix for mc.keymap)
* fixed keybind for 'ViewMoveToBol', 'ViewMoveToEol'
    'EditScrollUpHighlight', 'EditScrollDownHighlight'
    * fixed hardcoded bindings into keybind.c
2009-10-26 21:29:39 +00:00
Ilia Maslakov
6d311fd852 Ticket #408
menu Command split to Command and Format

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-26 15:23:25 +00:00
Andrew Borodin
21fd13bf90 Merge branch 'HACK_menu'
* HACK_menu:
  Added new keybinding files in mc.spec.
  Show actual shortcuts in editor menu.
  Implemented default actual shortcuts for main menu.
  Implemented display of actual shortcuts in main menu.
  Add support for multi-hotkeys in editor (like a ctrl-x,t).
  Added default keybinding strings.
  Added missed '#include "fileloc.h"' in main.c.
  Some refactoring.
  Reimplemented keybindings parser.
  Use commands instead of callbacks to execute menu items.
  Fixed key translation in editor.
  Use commands instead of callbacks to execute menu items.
  Menu fixes and optimization.
  New menu engine: use GList instead of GPtrArray.
  Menu: handle HOME and END keys.
  Ticket #1563: Modified menu engine to create and modify menu dynamically.
2009-10-26 16:23:42 +03:00
Andrew Borodin
b1994a1cc8 Added new keybinding files in mc.spec.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-26 16:15:32 +03:00
Andrew Borodin
7e33c12685 Show actual shortcuts in editor menu.
Key emulation in editor was removed. Default key emulation
is stored in misc/mc.keymap.default file. Emacs key emulation
is stored in misc/mc.keymap.emacs.
Editor options dialog was redesigned.
Shortcut parser was fixed.
Fixes after rebase to recent master.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-26 16:15:32 +03:00