11377 Commits

Author SHA1 Message Date
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
Ilia Maslakov
ec6d27b7de Ticket #2628 (shift-tab, ctrl-tab incorrect works)
fixed trouble with tab + ctrl/shift modifiers then mc started into xterm.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-07 11:44:42 +03:00
Egmont Koblinger
5cebdc4bba Ticket #2684 (selected file must be into the visible area).
After resize the window, the cursor line disappears, selected file was hide, but mustn't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-07 11:42:19 +03:00
Andrew Borodin
9a406992a5 Ticket #2705: the 0x prefix for hexadecimal search is optional now.
Hexadecimal values like "2d f0" can be used as well as "0x2d 0xf0"
in all search dialogs where hexadecimal search is supported.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-07 11:39:12 +03:00
Ilia Maslakov
3aa313358a Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved)
reset selection after END/HOME/PgDn/PgUp pressed only if 'persistent selection' is switched off.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-07 11:33:48 +03:00
Andrew Borodin
2d9e2bb837 Ticket #2736: dont't reload panel forced before file operations
...to avoid actions on wrong files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-07 11:30:34 +03:00
Sergei Trofimovich
398765e790 configure.ac: treat firefox as browser as well
Found out by Michał Górny

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

(cherry picked from commit 1da8ab58f8e1e929ccacfa5db5d00bf02f01c032)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:21:54 +03:00
Andrew Borodin
0a952de787 Grammar.
(cherry picked from commit 7f1a2e76afd5fe5708e0a120ca9ebe6247ec57cd)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:17:33 +03:00
Andrew Borodin
75cd51b060 Calculate and show copied bytes for all files.
(cherry picked from commit b991d529eeb68cb39a7061698cd3ce617981fadf)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:17:20 +03:00
Andrew Borodin
51c7a57b0b Update file operation statistics for every processing file.
(cherry picked from commit 09d77878c7d3988d0470b7330a42ff5a7c98594a)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:17:06 +03:00
Andrew Borodin
00a1a7f009 Simplify constructing of file operation progress dialog.
(cherry picked from commit dad538e7dcfec0d54358746d3336a50455a528b8)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:16:47 +03:00
Andrew Borodin
e9d0b7898c Ticket #2503: don't show total file operation info
...if the file_op_compute_totals option is off.

(cherry picked from commit efb0197656dbfc7a6526e0d1fbcf290d00cea46d)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:16:31 +03:00
Andrew Borodin
d658d1d8a2 Ticket #2714: command line is unaccessible form tree panel.
If current panel is tree one, cannot enter a command in the command
line.
tree_key() was sync'd with panel_key().

(cherry picked from commit 349308542fbb5c7ed6b81372270bdfd2104aaa50)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:10:43 +03:00
Sergei Trofimovich
83563af6f7 Ticket #2732: fix vfs test build failure on alpha
The test fails to compile on alpha:

>  CC     vfs_parse_ls_lga.o
> vfs_parse_ls_lga.c: In function ‘test_vfs_parse_ls_lga’:
> vfs_parse_ls_lga.c:174:9: error: unknown field ‘st_atime’ specified in initializer
> vfs_parse_ls_lga.c:175:9: error: unknown field ‘st_mtime’ specified in initializer

as st_atime on alpha in not just a field name:

struct stat {
...
    __extension__ union { struct timespec st_atim; struct { __time_t st_atime; unsigned long st_atimensec; }; };
    __extension__ union { struct timespec st_mtim; struct { __time_t st_mtime; unsigned long st_mtimensec; }; };
    __extension__ union { struct timespec st_ctim; struct { __time_t st_ctime; unsigned long st_ctimensec; }; };
};

The fix switches to old-style struct initialization.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-02-13 16:24:44 +03:00
Sergei Trofimovich
76c572c676 Ticket #2732: tests/lib/vfs/Makefile.am: drop muldefs from CFLAGS
Otherwise gcc on alpha/arm will break in gcc -c phase:

      CC     config_string.o
    armv5tel-softfloat-linux-gnueabi-gcc <skip>  -z muldefs -c config_string.c
    armv5tel-softfloat-linux-gnueabi-gcc: muldefs: No such file or directory
    make[4]: *** [config_string.o] Error 1

Gentoo-bug: http://bugs.gentoo.org/403343
Reported-by: Markus Meier
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-02-13 16:24:34 +03:00
Andrew Borodin
402ad8519d (edit_insert_file_cmd): sync with new edit_insert_file()
...and make minor optimization.

(cherry picked from commit 8fae57a1f50c03b19804949b60f7f3725715d064)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-05 11:02:19 +03:00
Ilia Maslakov
7e8fee6486 Ticket #2710 (can't open an edit zero-length file from VFS in mcedit)
fixed problem with zero-length files from VFS in mcedit.

    steps to reproduce the problem:
    1. touch test.txt
    2. tar cf test.tar test.txt
    3. place cursor on test.tar and press Enter to enter to the archive.
    4. place cursor on test.txt and press F4 to open file in editor.
    Result: file not opened.

(cherry picked from commit 88b3f840a72b89fa46536ff7e366044aa9bc551d)

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-05 11:02:00 +03:00
S. Melnikov
9aadcfe970 Ticket #2105 (mcview backward search)
Until 4.7 '/' was forward and '?' backward search.
    In current releases both keys are bound to ViewSearch
    so one must manually choose Backwards option in the dialog.

(cherry picked from commit a3ddfd14ea00a4a2018eeed133887d3865e1a19f)

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-05 10:56:32 +03:00
Andrew Borodin
8b5e5e5430 Refactoring of hotlist confirmation dialogs.
(cherry picked from commit 1f1908a824fe3dc257789f74fac78d7b5fb83e62)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-05 10:51:27 +03:00
Andrew Borodin
5f3223cf8f Ticket #1576: delete an empty hotlist group w/o extra confirmation.
While deleting an empty group in hotlist, the extra confirmation
"Group not empty. Remove it?" should not raise.

(cherry picked from commit a29abae2e352796d60eb804353f3e00b2a82fe47)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-05 10:51:04 +03:00
Andrew Borodin
00a2e20d6b Ticket #2694: support '~' as home dir in 'Start at:' field in 'Find File' dialog.
(cherry picked from commit 1923c3544c48c5655af8985c205a7261464cbf7c)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-05 10:46:10 +03:00
Egmont Koblinger
a6ca3c2899 Ticket #2689 (fix fallocate detection for xBSD)
fixed macros 'mc-get-fs-info.m4' for correct 'fallocate' detection under xBSD

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-01-19 17:13:14 +04:00
Andrew Borodin
99e292a800 Updated Russian translation
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-14 10:42:37 +03:00
Andrew Borodin
3633020936 Fixed hotkeys in 'Search' dialog in mcdiff viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-14 10:42:26 +03:00
Andrew Borodin
f62de8b8ab Fixed hotkeys in 'Search' and 'Replace' dialogs in mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-14 10:42:14 +03:00
Andrew Borodin
fcfc17b03c Fixed hotkeys in 'Search' dialog in mcviewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-14 10:41:58 +03:00
Andrew Borodin
a14d931f46 Ticket #2704: added hotkeys for search types.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-14 10:41:45 +03:00
ctmp1
86dd1646f5 Ticket #2645: improve djvu support.
Open of djvu files with 'djv' extension.
View action for djvu with text layer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-14 10:36:20 +03:00
Nerijus Baliunas
3fd3f2befe Ticket #2702: improve video support.
Open .m4v and .ts files as video ones.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-14 10:34:56 +03:00
Artem S. Tashkinov
b6f3e56f9f Ticket #2703: Simplify mc.menu - remove LZMA|LZ and change p7 to 7z
* LZMA is now considered unsupported and outdated, let's get rid of it.
 * There's no p7 archiver format, let's change it to "7z".

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-01-13 11:58:49 +03:00
Andrew Borodin
66868141a5 doc/NEWS: fixed non-latin symbols.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:59:06 +03:00
Ilia Maslakov
3e15b5af64 Ticket #86 (disable X11 from command line)
added option --no-x, -X for starting mc without X11 support.
    updated documentation: es, hu, it, en, pl, ru, sr.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-22 11:36:05 +04:00
Andrew Borodin
a4b838cb4d Updated Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
4.8.1
2011-12-13 14:08:00 +03:00
Slava Zanko
45fead09f3 Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-13 12:07:58 +03:00
Slava Zanko
b03bfd56ea Updated translations from transifex.net
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-13 12:04:20 +03:00
Slava Zanko
8187e6eca5 Merge branch '2686_master_cleanup'
* 2686_master_cleanup:
  Modified "Configure options" dialog for better look'n'feel.
  Fixed user defined home dir, if home dir contain tilda (~/)
  Fixed memory leak in lib/serialize.c
  Move type and function declarations.
  (mc_config_normalize_before_save): fixed possible memory leak.
  (history_put): unused. Removed.
  Fixed double declaration of midnight_dlg variable.
  Moved declaration of old_esc_mode_timeout variable to the proper file section.
  More type accuracy
  (tty_lowlevel_getch): used in lib/tty only.
  Type accuracy.
  Fixed panel type replacement.
  Ticket 2686: Code cleanup
2011-12-13 11:21:26 +03:00
Andrew Borodin
bd2ddb54cb Modified "Configure options" dialog for better look'n'feel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:30:35 +03:00
Slava Zanko
1dffc24f9b Fixed user defined home dir, if home dir contain tilda (~/)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:30:35 +03:00
Slava Zanko
44de4d1b1f Fixed memory leak in lib/serialize.c
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:23:25 +03:00
Andrew Borodin
1b53918e0a Move type and function declarations.
(panel_view_mode_t): move from panel.h to layout.h.
(panel_update_cols): move from layout.[ch] to panel.[ch]
Fixed related includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
b49c165c59 (mc_config_normalize_before_save): fixed possible memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
d412b1ec8f (history_put): unused. Removed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
5e129f6b03 Fixed double declaration of midnight_dlg variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
d305e5099c Moved declaration of old_esc_mode_timeout variable to the proper file section.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
5aaaa57883 More type accuracy
...in addition to a1e34b8dfa01635c69e6f247cd25e783c9b6229b.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
6704d927c0 (tty_lowlevel_getch): used in lib/tty only.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00