When using slang, 'configure' prints blank in the "Screen library" name:
...
File system: Midnight Commander Virtual Filesystem
cpio, extfs, fish, ftp, sfs, sftp, smb, tar
Screen library:
Mouse support: gpm and xterm
X11 events support: yes
...
This occurs when slang is found using pkg-config (as opposed to explicit path
search). The patch fixes this by moving the 'screen_msg' assignment one level
up, to the controlling function (mc_WITH_SLANG) so that it's effective for
however method the library was found.
The problem was mentioned on our mailing list:
https://mail.gnome.org/archives/mc-devel/2016-March/msg00021.html
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Make Solaris Studio 12.4 happy.
"dialog.c", line 1029: warning: argument #2 is incompatible with prototype:
prototype: pointer to const void
argument : pointer to function (...) returning enum (...)
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Make Solaris Studio 12.4 & 12.5 happy.
"args.c", line 180: warning: initialization type mismatch
"args.c", line 188: warning: initialization type mismatch
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Calling tty_change_screen_size() causes a switch to the alternate screen:
* Resizing the window causes a SIGWINCH sent to the mc process.
* sigwinch_handler() sets the flag mc_global.tty.winch_flag to 1.
* The select() call in feed_subshell() is interrupted.
* feed_subshell() notices the winch_flag and calls tty_change_screen_size().
* tty_change_screen_size() calls SLsmg_reinit_smg().
* SLsmg_reinit_smg() sees that Smg_Mode is currently SMG_MODE_NONE
(because it was set that way back in reset_smg() that was called
when panels were hidden).
* SLsmg_reinit_smg() calls SLsmg_init_smg().
* SLsmg_init_smg() calls init_smg_for_mode(SMG_MODE_FULLSCREEN).
* init_smg_for_mode() calls SLtt_init_video().
* SLtt_init_video() sends the smcup terminfo sequence to the terminal.
* SLtt_init_video() calls SLtt_init_keypad().
* SLtt_init_keypad() sends the smkx terminfo sequence to the terminal
and flushes the output buffer. (If $TERM starts with xterm or exactly
matches screen, this function returns immediately without flushing the
buffer, so the issue will not be visible.) The terminal switches to
alternate screen and clears it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
By default, on Unix systems, unzip gets compiled with MDY date order. Debian
based distros compile it with YMD order, for which this patch adds support.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Save space and fix rpmlint warning found by OBS Framework
(build.opensuse.org).
mc.x86_64: W: files-duplicate /etc/mc/mc.keymap /etc/mc/mc.default.keymap
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
* 2193_copy_buffer_size:
(copy_file_file): reduce variable scopes.
(copy_file_file): get rid of one goto.
(copy_file_file): rename variables.
(copy_file_file): define copy buffer size in depend on destination file system block size.
(io_blksize): add intermediate variable.
(ST_BLKSIZE): fix signed and unsigned comparision.
Ticket #2193: use Coreutils way to define buffer size to copy file.
m4.include/stat-size.m4, lib/stat-size.h: get these files from Gnulib.
src/filemanager/ioblksize.h: get this file from Coreutils.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
In #3599 a Perl warning was introduced in fish_list_perl(), so
fish_list_perl() was skipped (return code 255) and fallback ls function
was used instead.
Additionally, all % chars must quoted because of g_strconcat() after
reading script file into a string.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>