Commit Graph

11090 Commits

Author SHA1 Message Date
Andrew Borodin 7fc7d0e74e Fixed vfs descriptions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 20:23:44 +03:00
Ilia Maslakov 54cf8c3ffa Do not mark the text after opening the file.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-07-11 20:23:44 +03:00
Slava Zanko d3bb9de01f Ticket 2570: Code cleanup
Moved tests from lib/tests to tests/lib directory

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-11 20:23:44 +03:00
Slava Zanko 9376d55456 Merge branch '81_leading_space_in_filename'
* 81_leading_space_in_filename:
  Ticket #81: savannah: can't access files on ftp starting with space
2011-07-11 19:51:00 +03:00
Slava Zanko 4e56efafe6 Ticket #81: savannah: can't access files on ftp starting with space
files starting with space can't be acessed by mc through ftp - it
shows the file as not having the leading space and attempts to
access it produce 'permission denied' errors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-11 19:50:32 +03:00
Andrew Borodin a4af63e827 Merge branch '2491_find_file_relative_paths'
* 2491_find_file_relative_paths:
  Renamed do_find() to find_file() and vice versa.
  (search_content): use mc_build_filename() instead of concat_dir_and_file().
  (make_fullname): removed. Use mc_build_filename() instead.
  Ticket #2491: broken lynk-like navigation in panelization of file find result.
2011-07-11 13:26:52 +04:00
Andrew Borodin b13b031434 Renamed do_find() to find_file() and vice versa.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Andrew Borodin 835f12eb59 (search_content): use mc_build_filename() instead of concat_dir_and_file().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Andrew Borodin 97a776be47 (make_fullname): removed. Use mc_build_filename() instead.
Since make_fullname() now gets absolute paths only, optimize it out.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Andrew Borodin 439369b0ca Ticket #2491: broken lynk-like navigation in panelization of file find result.
Broken  left arrow (of lynx-like motion) from panelization of directories
having files only (without any subdirs).

Steps to reproduce:

1. mkdir -p a/{b/c,d}
2. touch a/d/e
3. cd a/b
4. mc
5. alt-shift-/ enter l left - selection points to 'b' directory (as it should)
6. down, enter, alt-shift-/ enter l left - selection points to '..' instead of 'd'

Now, if user enters the relative path in "Start at": input line in "Find File"
dialog window, the relative paths are used in panelization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Slava Zanko 381db1462d Merge branch '2572_patchfs_space_in_fnames'
* 2572_patchfs_space_in_fnames:
  Ticket #2572: Patchfs with filenames containing whitespaces.
2011-07-11 11:06:29 +03:00
Serhiy Storchaka 5ece6efde5 Ticket #2572: Patchfs with filenames containing whitespaces.
This solution isn't perfect because of ambiguous diff syntax.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-11 11:06:05 +03:00
Andrew Borodin 17033652ee Revert "Ticket #2453: aggressive screen repaint"
This reverts commit f809e6cf7a.

While navigating in main menu (from one submenu to another one)
or after closing a dialog, the screen is blinking.
2011-07-09 20:39:46 +04:00
Andrew Borodin 2aa5f4adcc Updated Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 20:37:43 +04:00
Andrew Borodin d14e6fc4af Updated mc.pot file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 20:21:17 +04:00
Andrew Borodin 32de3c2215 Merge branch '2557_chmod_i18n'
* 2557_chmod_i18n:
  Reimplementation of chmod dialog i18n.
  Calculate array sizes
  Place buttons in 2 rows if more than 2 files are processed.
  Optimization of Chmod dialog initialization.
  Collect file info labels in a separate array.
  Added chmod_i18n() function.
  Remove help text from chmod dialog
  Code cleanup.
  Ticket #2557: i18n reimplementation of 'Chmod' dialog.
2011-07-09 13:55:28 +04:00
Andrew Borodin bc69280e50 Reimplementation of chmod dialog i18n.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin 7a15e1d0e9 Calculate array sizes
...using actual array content. Get rid of according defines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin 36276dd7c8 Place buttons in 2 rows if more than 2 files are processed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin 50d56ca13d Optimization of Chmod dialog initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin 4029fa796e Collect file info labels in a separate array.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin 69b1de0476 Added chmod_i18n() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin 267f4302e9 Remove help text from chmod dialog
... as it presents in mc built-in help.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin b6ca87696c Code cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin ce46cf3a8e Ticket #2557: i18n reimplementation of 'Chmod' dialog.
Initial step: type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Slava Zanko 63c0f34dce Direct commit: Fixed double memory free in input histoey list.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-09 11:55:30 +03:00
Andrew Borodin 3415416be8 Merge branch '71_skip_all_fix'
* 71_skip_all_fix:
  Ticket #71: mc hangs up after "Skip all" choose
2011-07-08 20:55:32 +04:00
Andrew Borodin ba4295e4f0 Ticket #71: mc hangs up after "Skip all" choose
...in case of copy/move files w/o read permissions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 20:54:55 +04:00
Andrew Borodin 7963f44daa Merge branch '2545_save_history_fix'
* 2545_save_history_fix:
  (push_history): fixed memory leak.
  (input_destroy): optimization: don't do useless actions.
  Ticket #2545: fixup of saving WInput history.
2011-07-08 20:50:21 +04:00
Andrew Borodin f3fefa67f6 (push_history): fixed memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 20:48:53 +04:00
Andrew Borodin 630bcae4d4 (input_destroy): optimization: don't do useless actions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 20:48:53 +04:00
Andrew Borodin de5fac8d0a Ticket #2545: fixup of saving WInput history.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 20:48:53 +04:00
Slava Zanko ba09144ce5 Merge branch '1882_esc_seq_in_replace_field'
* 1882_esc_seq_in_replace_field:
  Remove replace_prepare_t type and use defined constants for use just one type (int) in functions
  Despite of the fact that algorithm now ignores the absence of closing curly brace '}' (which probably isn't 100% correct), this should be checked in tests for replace_handle_esc_seq function, not process_escape_sequence - it is the replace_handle_esq_seq who decides whether it is an escape sequence or not.
  added tests for mc_search_regex__replace_handle_esc_seq() function
  str_isutf8() function now returns gboolean value
  Ticket #1882: PCRE search: escape sequence support in replacements, UTF8 support (just a flag for libPCRE)
2011-07-08 19:39:35 +03:00
Slava Zanko e1edfd7c93 Remove replace_prepare_t type and use defined constants for use just one type (int) in functions
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 17:28:07 +03:00
Vitaliy Filippov fb7b01eeb9 Despite of the fact that algorithm now ignores the absence of closing curly
brace '}' (which probably isn't 100% correct), this should be checked in tests
for replace_handle_esc_seq function, not process_escape_sequence - it is the
replace_handle_esq_seq who decides whether it is an escape sequence or not.

Also, \x{4344} is usually a code for wide character (UTF-8), and not for "CD".
So we can either ignore the higher bits, or generate wide character codes...
The second would be convenient, but would also introduce a hard-coded UTF-8 charset.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 17:28:07 +03:00
Slava Zanko 3ced63361b added tests for mc_search_regex__replace_handle_esc_seq() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 17:28:07 +03:00
Slava Zanko 6cec807140 str_isutf8() function now returns gboolean value
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 17:26:31 +03:00
Vitaliy Filippov aa2d0b07ed Ticket #1882: PCRE search: escape sequence support in replacements, UTF8 support (just a flag for libPCRE)
Enables use of escape sequences inside regex replace strings,
Enables UTF-8 caseless search in PCRE.
Supported escape sequences: \DEC, \xHEX, \0OCT, \n, \t, \v,
\b, \r, \f, \a. Any of them could be enclosed into \{}.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 17:26:30 +03:00
Slava Zanko bb12a1296f Direct commit: fixed broken build
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 13:49:56 +03:00
Andrew Borodin 51617ea9dd Merge branch '2453_screen_corruption'
* 2453_screen_corruption:
  Ticket #2453: aggressive screen repaint
2011-07-08 13:52:17 +04:00
Andrew Borodin f809e6cf7a Ticket #2453: aggressive screen repaint
... to avoid artefacts after printing of non-printable symbols.

(tty_touch_lines): new function to mark modified lines of screen.
(do_refresh): mark lines as modified before redraw of non-fullscreen dialog
and clear entire screen before redraw of fullscreen dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 13:51:41 +04:00
Slava Zanko f5ff35a5f3 Merge branch '2569_fix_bashisms'
* 2569_fix_bashisms:
  extfs helpers: Replace all 'gawk' occurences with @AWK@ meta variable.
  Ticket #2569: fix bashisms in extfs
2011-07-08 12:41:48 +03:00
Slava Zanko bf89e24a61 extfs helpers: Replace all 'gawk' occurences with @AWK@ meta variable.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 12:41:27 +03:00
Jindrich Makovicka b0ba12d49c Ticket #2569: fix bashisms in extfs
Several extfs scripts (notably iso9660) don't work on linux
distributions using dash as the default shell. This patch
fixes all current problems in extfs reported by checkbashisms
utility.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 12:41:03 +03:00
Slava Zanko 0b71156473 Merge branch '1851_fix_migrate'
* 1851_fix_migrate:
  lib/mcconfig/paths.c: cleanup.
  Ticket #1851: Home config directory [xdg-user-dirs]
2011-07-08 12:38:40 +03:00
Andrew Borodin 8ff0da42cd lib/mcconfig/paths.c: cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 12:38:03 +03:00
Slava Zanko c057627979 Ticket #1851: Home config directory [xdg-user-dirs]
Fixed migrating user config files.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 12:38:03 +03:00
Matthieu Crapet c29e0eaa3d Ticket #2566: .mts file is handled as videofile.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 11:34:28 +04:00
Mihail Slobodyanuk 5fe72669f7 Ticket #2562: view torrent file using ctorrent.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 11:21:04 +04:00
Slava Zanko d7fd84507c Merge branch '1629_nroff_utf8'
* 1629_nroff_utf8:
  Fixed return codes for mcview_get_utf() function
  Search does not find text that are bold or underlined (yellow or red) and contain accented letters. Exception: it finds if only the first character is accented, but highlights the match incorrectly.
  Ticket #1629: Problems displaying UTF-8 manual pages
2011-07-07 14:01:00 +03:00