id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
2676	mc-4.8.0-56-g16d1abf: save of some learned keys is broken	bircoph	angel_il	"Hello,

recent git snapshot brokes key binding saving.
Midnight Commander was build as follows:

{{{
GNU Midnight Commander 4.8.0-56-g16d1abf
Built with GLib 2.30.1
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
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;
}}}

I use xterm + screen + mc. 

For 13 <= n <=20 Fn keys I map Fn as S-F(n-10) (e.g. F13 as Shift-F3), this results in the following keymap on the old mc (4.8.0-pre1):

{{{
[terminal:screen]
f13=\\e[1\;2R
f14=\\e[1\;2S
f15=\\e[15\;2~
f16=\\e[17\;2~
f17=\\e[18\;2~
f18=\\e[19\;2~
f19=\\e[20\;2~
f20=\\e[21\;2~
}}}

Please note, that this keymap loads well with both new and old mc versions.
But new mc snapshot saves these keys as follows:

{{{
[terminal:screen]
f13=\\e[1\\;2R
f14=\\e[1\\;2S
f15=\\e[15\\;2~
f16=\\e[17\\;2~
f17=\\e[18\\;2~
f18=\\e[19\\;2~
f19=\\e[20\\;2~
f20=\\e[21\\;2~
}}}

It inserts extra \ before ; and fails to load its own config, which results in badly broken key binding for affected keys.
"	defect	closed	major	4.8.1	mc-config-ini	master	fixed					merged	committed-master committed-stable
