This reverts commit f809e6cf7a8b6584f1500d049f133557152dab6d.
While navigating in main menu (from one submenu to another one)
or after closing a dialog, the screen is blinking.
* 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.
* 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)
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>
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>
... 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>
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>
* 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
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>
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 cff59255982d470b11a97408d7d3571b03b8401a:
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>
(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>
* 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.