Ticket #3000: incorrect file size is reported in copy/move overwrite query dialog.

(overwrite_query_dialog): adjust file size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
size_trunc_len() generates incorrect result in some cases.

Revert "(size_trunc_len): support automatic maximum unit for specified size."
This reverts commit ef94b84eaf570dd1cc3faa383cdb49a7638c3be6.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(size_trunc_len): minor optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3000_incorrect_filesize'
Ticket #3001: fix read and update of subshell prompt.

The bug was introduced in e35f044ccdd41922f925c99e6d50930ea8c7c47e.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(strip_ctrl_codes): type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Cleanup: remove unused 'prompt_pos' variable.

(do_subshell_chdir): remove 'reset_prompt' argument because of removed
'prompt_pos'.

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

* 3001_subshell_prompt_fix:
  Cleanup: remove unused 'prompt_pos' variable.
  (strip_ctrl_codes): type accuracy.
  Ticket #3001: fix read and update of subshell prompt.
Ticket #3011: mc under x11 problems with mouse or hang due gpm

mc may not detect the gpm mouse under X11 on many x terminals when running together with tmux or screen.

On some cases it can even hang.

It's a small patch to the gpm maintainer to improve its checking.
Seems there is a need also to a small change on mc.

Now everything is working perfectly.

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

* 3011_mc_gpm_and_xterm:
  Ticket #3011: mc under x11 problems with mouse or hang due gpm
Ticket #3016: Segfault while entering into extfs archive

Current master (4.8.8-49-g6b64835) segfaults while entering into any extfs archive (zip, rar, etc).
Bad commit is 2640b21bb9700aa51a70f35f9e10732c82a7366f.

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

* 3016_extfs_segfault:
  Ticket #3016: Segfault while entering into extfs archive
Direct commit in master: fix bug with a directory deletion

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Misspellings fixes by https://github.com/vlajos/misspell_fixer

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Refresh po/*.po files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Update RU translation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2737: set of 256-color skins from Oliver Lange <modarin@bloody.in-berlin.de>.

modarin256: a moderate-dark-independent 256-color skin for Midnight Commander.

This skin is using colors independent from the default 16 terminal colors,
i.e., no matter how the 16 standard colors are configured, the appearance
of Midnight Commander will not be affected.

There are 4 variants of this skin:

modarin256
  - default skin, no standard colors used.

modarin256-defbg
  - like modarin256, but using the default background color for core, editor,
    viewer, menu and popupmenu backgrounds, for use with (semi-)transparent
    background colors.

modarin256root
modarin256root-defbg
  - like the other two skins, but for the root user, with red colors used
    instead of green colors for things like select/focus/statusbar etc.,
    to keep reminding the user that mc is running as root.

Fallback skins for 16-color terminals (poor man's skins):

modarcon16
modarcon16-defbg
modarcon16root
modarcon16root-defbg
  - like everything running in a 16-color terminal, these skins look ugly
    and are no subsitute for the 256-color versions. As some terminals don't
    support using dark gray as background color, i used a black background
    and adjusted the remaining colors accordingly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2923: broken aliases in SFTPFS.

(sftpfs_correct_file_name): fix handling of tilde-starting file names.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix: sftp: password ask too often if hostname was bring from ~/.ssh/config file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/vfs/sftpfs/vfs_subclass.c: add missing includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>