Commit Graph

11239 Commits

Author SHA1 Message Date
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
Slava Zanko
f462d71ab4 Added po/mc.pot file for auto-upload to Transifex.net
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-24 12:02:43 +03:00
Sergei Trofimovich
23f1447ae5 doc/HACKING: fixed link to gentoo's patchsets
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2011-06-24 10:51:29 +03:00
Slava Zanko
f2ebbd2eb4 Merge branch '2361_vfs_uri'
* 2361_vfs_uri: (60 commits)
  Fixed vfs_class->fill_names() functions (Fish, Ftpfs, Smbfs) for return URL-like paths
  Fixed nice_cd() behavior with vfs-prefixed. added converter benween old-style and url-stype VFS prefixes
  Code cleanup
  vfs_path_get_by_index(): added check for valid element index
  Fixed memory leaks in folowing functions:
  Removed function vfs_s_get_path(); Function vfs_s_get_path_mangle() renamed to vfs_s_get_path()
  Added function mc_build_filename() for processing URL-paths as well
  fixed x_basename function for handle URL-like paths
  added vfs_path_element_valid() function
  Changes in man-files for describe new URL-like paths
  change name of user bindings file to mc.ext
  vfs_path_to_str() now return URL string instead of old representation
  Added URL-like path parser
  Reorder VFS parser to work with VFS parameters:
  Handle path /some/path/#vfsprefix:/path as /some/path#vfsprefix:/path
  Remove usage of vfs_path_t->raw_url_str from src/* files
  Following prototypes of functions was changed in VFS-module API:
  Added function vfs_path_url_split() for parse VFS parameters
  Removed vfs_get_class() function
  Following prototypes of functions was changed in VFS-module API:
  ...
2011-06-23 14:46:11 +03:00
Slava Zanko
ef676d3244 Fixed vfs_class->fill_names() functions (Fish, Ftpfs, Smbfs) for return URL-like paths
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
a0b48d9b4e Fixed nice_cd() behavior with vfs-prefixed. added converter benween old-style and url-stype VFS prefixes
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
c8ae0a5aaf Code cleanup
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
91fe0d71bb vfs_path_get_by_index(): added check for valid element index
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
5fa1070225 Fixed memory leaks in folowing functions:
* mc_opendir()
 * mc_chdir()
 * vfs_release_path()
 * check_panel_timestamp()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
60123b7c99 Removed function vfs_s_get_path(); Function vfs_s_get_path_mangle() renamed to vfs_s_get_path()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
1beaecdf12 Added function mc_build_filename() for processing URL-paths as well
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
1eb91d7921 fixed x_basename function for handle URL-like paths
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
04a4ed0ece added vfs_path_element_valid() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
42e864ad61 Changes in man-files for describe new URL-like paths
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
f7518c8d77 change name of user bindings file to mc.ext
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
bba132381e vfs_path_to_str() now return URL string instead of old representation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
2ec4cc59ab Added URL-like path parser
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
39462b9b76 Reorder VFS parser to work with VFS parameters:
* Removed vfs_path_element_t->raw_url_str;
 * Changed some VFS prefixes (colon now used when need to split VFS prefix and VFS parameters);
 * Removed vfs_translate_url() functions and related code;
 * added converter of VFS parameters to string representation.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
bd022573e5 Handle path /some/path/#vfsprefix:/path as /some/path#vfsprefix:/path
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
5b862005bd Remove usage of vfs_path_t->raw_url_str from src/* files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
e6ec447585 Following prototypes of functions was changed in VFS-module API:
* archive_check
 * archive_same
 * open_archive

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
e9ed6a41cf Added function vfs_path_url_split() for parse VFS parameters
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
3d1e2df9b7 Removed vfs_get_class() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
922114a1d0 Following prototypes of functions was changed in VFS-module API:
* archive_check
 * archive_same
 * open_archive

Added new functions:

 * vfs_path_element_clone()
 * vfs_path_clone()
 * vfs_path_remove_element_by_index()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
c442e5e75f Changed custom_canonicalize_pathname() function for handle URL:// style
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
d931785fd3 Added test for canonicalize_pathname() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
997876a109 Remove vfs_url_t structure (replace with vfs_path_element_t)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
3eafe7308a Added serialization and deserialization for vfs_path_t object
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00