id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4434	In `mc.ext.ini`, `Edit` command from `Default` section is ingored in 4.8.29	humeniuc	andrew_b	"For 4.8.28 and before, I use `Edit=my_editor_command %f` in `default/*` section 
in order to configure a default editor.

Since 4.8.29 if an section exists for a filetype but not declaring an `Edit` command,
pressing <F4> over a file opens `mcedit` instead `my_editor_command` from `Default` section.

Ex: `html` section exists, and `nano` is the configured edtor in `Default` section.
Pressing <F4> over a html file opens `mcedit` instead of `nano`.

= Old Behavior, 4.8.28 and before =

'''mc -V'''
{{{
GNU Midnight Commander 4.8.28
Built with GLib 2.56.1
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, fish
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
}}}

'''mc.ext'''
{{{
# html
regex/i/\.html?$
    Open=/home/user/.local/libexec/mc/ext.d/web.sh open html
    View=%view{ascii} /home/user/.local/libexec/mc/ext.d/web.sh view html

# Default target for anything not described above
default/*
    Edit=nano %f
    View=
}}}

== Behavior ==

Cursor over x.php.
Press <F4>
nano is started - '''OK, as expected''' 

Cursor is over x.html
Press <F4>
nano is started - '''OK, as expected'''


= Changed Behavior 4.8.29 =

'''mc -V'''
{{{
GNU Midnight Commander 4.8.29
Built with GLib 2.74.4
Built with S-Lang 2.3.3 with terminfo database
Built with libssh2 1.10.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, fish
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
}}}

'''mc.ext.ini'''
{{{
[html]                                                                                       
Regex=\.html?$                                                                               
RegexIgnoreCase=true                                                                         
Open=/usr/lib/mc/ext.d/web.sh open html                                                      
View=%view{ascii} /usr/lib/mc/ext.d/web.sh view html 

# Default target for anything not described above
[Default]
Edit=nano %f
Open=
View=
}}}

== Behavior ==

Cursor over x.php.
Press <F4>
nano is started - '''OK, as expected'''

Cursor is over x.html
Press <F4>
mcedit is started - '''FAIL''', nano was expected to start.
"	defect	closed	minor	4.8.30	mc-config-ini	4.8.29	fixed	mc.ext, mc.ext.ini				merged	committed-master
