Ticket #2958: buttons in the 'Directory hotlist' window are placed incorrectly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix buttons placement in file find result window.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2958_hotlist_buttons'

* 2958_hotlist_buttons:
  Fix buttons placement in file find result window.
  Ticket #2958: buttons in the 'Directory hotlist' window are placed incorrectly.
Ticket #2964: mouse doesn't select text in subshell in native console.

Steps to Reproduce:

1. Run mc in native console (not in X terminal emulator).
2. Press Ctrl+O to switch to subshell.
3. Try select anything with mouse.
Result: mouse does't select anything.

This bug was introduced in 68468a25acea04c44320d0a75226a051d7c2b64a
commit.

Solution: make mouse initialization after initializaton of subshell.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2964_mouse_in_subshell'

* 2964_mouse_in_subshell:
  Ticket #2964: mouse doesn't select text in subshell in native console.
Ticket #2626: special chars are not escaped in autocompletion of filenames.

Test case:
1. Create a file with name that contains some special chars:
   touch attachment.cgi?id=564208
2. Press F6.
3. Press a. Now only the 'a' letter is in input line.
4. Press Esc Tab Enter.
5a. Input line is filled by 'attachment.cgi?id=564208'...
5b. but 'attachment.cgi\?id=564208' is expected.
6. Add 'patch_' before file name:
   'patch_attachment.cgi?id=564208'.
7. Press Enter.
8a. Result: 'patch_attachment.cgiattachment.cgi?id=564208id=564208'.
8b. Expected result: 'patch_attachment.cgi?id=564208'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Add tests for mc_search__translate_replace_glob_to_regex() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Update EN and RU man pages.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
mc_search__translate_replace_glob_to_regex(): Avoid warnings

...if function is called with 'const char *' argument.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Merge branch '2626_escape_autocompletion'

* 2626_escape_autocompletion:
  mc_search__translate_replace_glob_to_regex(): Avoid warnings
  Update EN and RU man pages.
  Add tests for mc_search__translate_replace_glob_to_regex() function.
  Ticket #2626: special chars are not escaped in autocompletion of filenames.
Code indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2206: Add jump support to target line in some external editors

Added own wrapper for _exit() system call. Useful for testing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add tests for lib/utilunix.c:my_system() function

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Code refactoring: my_system was split by few functions.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add new functions:

 * int my_systeml (int flags, const char *shell, ...);
 * int my_systemv (const char *command, char *const argv[]);

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add tests for src/execute.c:execute_with_vfs_arg() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Code refactoring: split src/execute.c:execute_with_vfs_arg() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add function lib/utilunix.c:my_systemv_flags()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add src/execute.c:execute_external_editor_or_viewer() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add lib/strutil/replace:str_replace_all() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>