Commit Graph

11266 Commits

Author SHA1 Message Date
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
Slava Zanko
79660a7588 Fixed return codes for mcview_get_utf() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-07 13:59:12 +03:00
Slava Zanko
c1aae6cb4e 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.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-07 13:59:12 +03:00
Egmont Koblinger
b944a0a6c2 Ticket #1629: Problems displaying UTF-8 manual pages
Accented characters in bold (yellow) text are displayed incorrectly:
the letter, followed by a dot, then the letter once again, all in white.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-07 13:59:12 +03:00
Andrew Borodin
7d52669920 Merge branch '2545_save_history'
* 2545_save_history:
  Optimization of history saving.
  Type accuracy and some clean up.
  Ticket #2545: optimization of history saving.
2011-07-07 14:19:52 +04:00
Andrew Borodin
5ffcffbeb6 Optimization of history saving.
Now history is not saved if it was not modified and content of input
line is equal to history top entry. Thanks Francesco Cosoleto
<cosoleto at gmail dot com> for the original patch.

Also fixed a regression introduced in cff5925598:
after CK_HistoryNext and CK_HistoryPrev actions in input line,
the input line content is not put to the top of history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-07 14:19:15 +04:00
Andrew Borodin
1a343a1a47 Type accuracy and some clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-07 14:19:15 +04:00
Andrew Borodin
166281c39a Ticket #2545: optimization of history saving.
(hist_next): get rid of direct access to the next histroy item.
(history_show): remove redundant check.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-07 14:19:15 +04:00
Andrew Borodin
f3ae923a6d Merge branch '2560_ac_obsolete_macros'
* 2560_ac_obsolete_macros:
  Get rid of obsolete form of AC_CHECK_TYPE macro.
  Avoid of double check of nlink_t and socklen_t types.
  Remove check of uintptr_t type
  Ticket #2560: get rid of autoconf obsolete macros.
2011-07-07 13:04:35 +04:00
Andrew Borodin
ad9f03da69 Get rid of obsolete form of AC_CHECK_TYPE macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-07 13:04:00 +04:00
Andrew Borodin
3778c95904 Avoid of double check of nlink_t and socklen_t types.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-07 13:04:00 +04:00
Andrew Borodin
726991fc91 Remove check of uintptr_t type
...because we don't have the regex.c file anymore (see
9db4ae7e2f).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-07 13:03:51 +04:00
Andrew Borodin
4358a4e898 Ticket #2560: get rid of autoconf obsolete macros.
Use AS_HELP_STRING instead of AC_HELP_STRING.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-07 13:03:21 +04:00
Slava Zanko
becd744bb6 Merge branch '2294_viewer_search_offset'
* 2294_viewer_search_offset:
  (mcview_do_search): minor clean up, types accuracy and some algorithm optimization.
  (mcview__get_nroff_real_len): immediately return 0 if viewer is not in nroff mode..
  Ticket #2294: mcview: incorrect starting offset for 'search again'
2011-07-05 16:30:49 +03:00
Andrew Borodin
3ad5f51b8c (mcview_do_search): minor clean up, types accuracy and some algorithm optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:26:30 +03:00
Andrew Borodin
287dc015f3 (mcview__get_nroff_real_len): immediately return 0 if viewer is not in nroff mode..
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-05 16:26:30 +03:00
Egmont Koblinger
ff2132b0a8 Ticket #2294: mcview: incorrect starting offset for 'search again'
When you press F7 in mcview to repeat the previous search, it starts again from the
file offset that is 3 bytes after the beginning of the current match. This introduces
weird and clearly buggy symptoms. Couple of examples:
If the file contains

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

and you search for a single x character, and you keep on pressing F7,
every third character gets highlighted.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:26:30 +03:00
Slava Zanko
906f688742 Merge branch '2361_url_path'
* 2361_url_path:
  Fixed errors while connect to IPv6 hosts
  custom_canonicalize_pathname(): Removed old-style path handling.
  Deprecated parser now used just in Hotlist widget.
  fixed relative symlink operations. Symlink now stay relative
  Ticket #2361: VFS URI reimplementation
2011-07-05 16:20:01 +03:00
Slava Zanko
0f249bd9b5 Fixed errors while connect to IPv6 hosts
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
2044d8f853 custom_canonicalize_pathname(): Removed old-style path handling.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
32a9f8257d Deprecated parser now used just in Hotlist widget.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
12af8e5db0 fixed relative symlink operations. Symlink now stay relative
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Andrew Borodin
ea4078e52e Ticket #2361: VFS URI reimplementation
Code cleanup:

 * (vfs_set_raw_current_dir): remove redundant check.
 * VFS: minor optimizations.
 * Fixed type of mode argument of vfs_class:chmod method.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:23 +03:00
Ilia Maslakov
92d21199c4 Merge branch '2534_mark_file_left_right'
* 2534_mark_file_left_right:
  Ticket #2534 (mark files by shift-left/shift-right)
2011-06-24 09:26:50 +00:00
Ilia Maslakov
125e4cb86b Ticket #2534 (mark files by shift-left/shift-right)
added actions for mark files in the panel by shift-left/shift-right

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-06-24 09:23:08 +00:00