Unification of tty_shutdown() function as for S-Lang as for NCurses.
Added do_exit_ca_mode() call to the NCurses-based tty_shutdown().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
The xterm_flag variable was initialized in setup_mc() but used
first time in init_key() and in tty_init() (in do_enter_ca_mode())
before setup_mc() call.
Now xterm initialized in early step of mc start up process and
xterm support and mouse are initialized in tty_init().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2580_file_size_column:
(size_trunc): added ability to show size in [G|g]bytes.
(size_trunc_len): process full range of uintmax_t type.
Ticket #2580: file size column is bogus for widths above 9.
The problem: extracting deep files from an archive containing long directory/file
names, filenames are cut off at 100 characters (length of the whole path
inside the archive).
In general, the TarVFS is scheduled for total reimplementation. But this
fix is useful for stable releases.
Thanks AVFS (avf.sf.net) for the code of this fix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2586_mcedit_extended_keybindings:
Changed type of WEdit::extmod from integer to gboolean.
Extended shortcuts like 'ctrl-x x' are unavailable in editor.
Ticket #2586: broken extended keybindings in editor.
Extended shortcuts like 'ctrl-x ctrl-x' or 'ctrl-x alt-x' are available
in editor, but 'ctrl-x x' are not.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
ctrl-x shortcut is used in default keymap twice:
* as shotrcut for WordRight action (see 0908c8baea);
* as prefix for extended keybindings.
To fix the second issue, shortcut for editor.ExtendedKeyMap is
unassigned now because extended shortcuts are unused in editor in
default keymap.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2591_editor_bottom_line_click:
Allow create WEdit window with any sizes and in any location.
Draw status line at the top of screen not at the top of editor widget.
Ticket #2591: mouse clicks ignored on the bottom line of editor.
After Find file -> Panelize files are shown with order of being found
and sorting mode of current panel is not applied.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(mc_search__hex_translate_to_regex): don't use length of original string
after leading whitespace trim.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 265_viewer_search_nroffed_twice:
Fixed finds twice in backward direction in nroff'ed text
fixed search result highlighting while search in backward direction
Fixed broken search results highlighting
Fixed broken search in nroffed text with one-byte charset encoding
Fixed search for first symbol in string.
Ticket #265: Search finds bold/underlined strings twice
1. do follow:
diff -BurpN file1.c file.c > my.patch;
diff -BurpN file2.c file.c >> my.patch;
2. we see two file.c.diff entries within patchfs.
after apply commit, we have one combined patch-file.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
added new extfs plugin - gitfs
used prefix [git] for identification as a #changesetfs
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>