id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4356	Subshell returns to panels view on key press (any key).	pgpb		"1 How to reproduce
══════════════════

  1. `mc -b': launch MC
  2. `ctrl-o': hide panels (enter subshell)
  3. `ls': list directory contents

  Expected:

  To see the contents of the current directory

  Actual:

  MC returns to the panel view when pressing any key, i.e., it's not
  possible to even finish typing the command `ls'.


2 Homebrew formula info
═══════════════════════

  I installed `mc' using Homebrew, however the bug is present also when building 
MC from sources using the versions given in this ticket:

        $ brew info mc midnight-commander: stable 4.8.27
        (bottled), HEAD Terminal-based visual file manager
        <https://www.midnight-commander.org/>

        From:
        <https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/midnight-commander.rb>

        ==> Dependencies Build: pkg-config ✔ Required: glib ✔,
        libssh2 ✔, openssl@1.1 ✔, s-lang ✔

  Which downloads v4.8.27 via: the following URL:
  <https://www.midnight-commander.org/downloads/mc-4.8.27.tar.xz>


3 `mc' info
═══════════

  ┌────
  │ LC_MESSAGES=C mc -V
  └────

  ┌────
  │ GNU Midnight Commander 4.8.27
  │ Built with GLib 2.70.0
  │ Built with S-Lang 2.3.2 with terminfo database
  │ With builtin Editor
  │ With subshell support as default
  │ With support for background operations
  │ With mouse support on xterm
  │ With internationalization support
  │ With multiple codepages support
  │ Virtual File Systems:
  │  cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish
  │ Data types:
  │  char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
  └────

  ┌────
  │ LC_MESSAGES=C mc -F
  └────

  ┌────
  │ Home directory: /Users/user1
  │ Profile root directory: /Users/user1
  │ 
  │ [System data]
  │     Config directory: /usr/local/Cellar/midnight-commander/4.8.27/etc/mc/
  │     Data directory:   /usr/local/Cellar/midnight-commander/4.8.27/share/mc/
  │     File extension handlers: /usr/local/Cellar/midnight-commander/4.8.27/libexec/mc/ext.d/
  │     VFS plugins and scripts: /usr/local/Cellar/midnight-commander/4.8.27/libexec/mc/
  │   extfs.d:        /usr/local/Cellar/midnight-commander/4.8.27/libexec/mc/extfs.d/
  │   fish:           /usr/local/Cellar/midnight-commander/4.8.27/libexec/mc/fish/
  │ 
  │ [User data]
  │     Config directory: /Users/user1/.config/mc/
  │     Data directory:   /Users/user1/.local/share/mc/
  │   skins:          /Users/user1/.local/share/mc/skins/
  │   extfs.d:        /Users/user1/.local/share/mc/extfs.d/
  │   fish:           /Users/user1/.local/share/mc/fish/
  │   mcedit macros:  /Users/user1/.local/share/mc/mc.macros
  │   mcedit external macros: /Users/user1/.local/share/mc/mcedit/macros.d/macro.*
  │     Cache directory:  /Users/user1/.cache/mc/
  └────

4 `git bisect' results
══════════════════════

  Using `git bisect' I found the following:

  • good version: 4.8.1.7
  • first bad commit found: 109af564bce7e86a0421680ede308be847339861

5 Currently using /good/ version: `4.8.1-stable'
════════════════════════════════════════════════

  I'm currently using MC built from sources using branch:
  `4.8.1-stable', which does not have the bug described in this ticket.

  I will also report this issue to Homebrew, however since the issue
  appears when building MC from sources I believe it also deserves a
  ticket here.

"	defect	closed	major		mc-core	master	invalid	subshell				no branch	
