* 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.
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>
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 68468a25ac
commit.
Solution: make mouse initialization after initializaton of subshell.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2958_hotlist_buttons:
Fix buttons placement in file find result window.
Ticket #2958: buttons in the 'Directory hotlist' window are placed incorrectly.
A followup extension, "SGR 1006" was invented by xterm, to overcome some
of the shortcomings of the previous one. It is becoming as widespread as
the previous one, and is likely to soon overtake it in popularity.
Note that most of the patch is just the removal of the huge complexity
introduced by the previous one. The previous extension didn't have a
unique prefix which made the whole parsing logic extremely complicated.
The new extension does have a unique prefix, so parsing becomes a piece
of cake. The code becomes much cleaner and much easier to maintain.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 55_filename_complete:
lib/widget/input_complete.c: minor refactoring and optimization.
Fix for input completions with spaces in names.
lib/widget/input_complete.c: refactoring:
Concretize the usage of autocompliting in different input fields.
Extend QUICK_INPUT and QUICK_LABELED_INPUT macros for getting completion flags via parameters instead of using hardcoded value
Ticket #55: savannah: tab completion vs. spaces and escaping
* (filename_completion_function): use GString to ret rid of hand-made
low-level memory allocation.
* (variable_completion_function): likewise.
* (hostname_completion_function): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
# By Andrew Borodin (10) and Slava Zanko (1)
# Via Slava Zanko
* 2944_cleanup:
Avoid compiler errors like: error: variable 'xxx' set but not used [-Werror=unused-but-set-variable]
Clarify check of C compiler flags.
Enable -Wunused-but-set-variable flag by default.
Clarify usage of use_internal_edit variable
Merge src/filemanager/option.[ch] to src/filemanager/boxes.[ch].
Remove irrelevant comments about file_date() function.
Avoid C++-style comments.
(mc_global_t::shell): new member to store user's shell
(subshell_prompt): changed to GString.
(read_subshell_prompt): return gboolean instead of int.
Ticket #2944: code cleanup before 4.8.8 release.
* 2076_copy_progress_width:
WHLine: allow draw text over horizontal line.
Copy/move/delete progress dialog occupies at least 2/3 of screen width.
Ticket #2076: make copy/move/delete progress dialog wider.