Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MC selects the second, not first user menu item that matches the condition #4555

Open
mc-butler opened this issue Jun 24, 2024 · 0 comments
Open
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.8.31 Reproducible in version 4.8.31

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4555
Reporter ilson (regspam@….ru)
  1. Open MC
  2. Create a file ~/.config/mc/menu with these contents:
= t r
1 item1

= t r
2 item2

= t r
3 item3
  1. Select any regular file and press F2. User menu opens and "item2" is selected while "item1" should be selected instead.

"LC_MESSAGES=C mc -V" output:

GNU Midnight Commander 4.8.31
Built with GLib 2.78.4
Built with S-Lang 2.3.3 with terminfo database
Built with libssh2 1.11.0
With builtin Editor and Aspell support
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, shell
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

"LC_MESSAGES=C mc -F" output:

Home directory: /home/ilf
Profile root directory: /home/ilf

[System data]
    Config directory: /etc/mc/
    Data directory:   /usr/share/mc/
    File extension handlers: /usr/lib/mc/ext.d/
    VFS plugins and scripts: /usr/lib/mc/
	extfs.d:        /usr/lib/mc/extfs.d/
	shell:          /usr/lib/mc/shell/

[User data]
    Config directory: /home/ilf/.config/mc/
    Data directory:   /home/ilf/.local/share/mc/
	skins:          /home/ilf/.local/share/mc/skins/
	extfs.d:        /home/ilf/.local/share/mc/extfs.d/
	shell:          /home/ilf/.local/share/mc/shell/
	mcedit macros:  /home/ilf/.local/share/mc/mc.macros
	mcedit external macros: /home/ilf/.local/share/mc/mcedit/macros.d/macro.*
    Cache directory:  /home/ilf/.cache/mc/

"mc --configure-options" output:

 '--prefix=/usr' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--enable-aspell' '--with-screen=slang' '--with-x' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mc/src=/usr/src/debug/mc -flto=auto' 'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto'

OS: Arch Linux
Terminal: UXTerm
Midnight Commander: 4.8.31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.8.31 Reproducible in version 4.8.31
Development

No branches or pull requests

1 participant