Ticket #2848: fixup of user-defined keymap load.
commitb3415de01922083e5c37de13ac856eb3ad86a4df
authorAndrew Borodin <aborodin@vmail.ru>
Sat, 28 Jul 2012 09:20:12 +0000 (28 13:20 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Thu, 30 Aug 2012 09:15:45 +0000 (30 13:15 +0400)
tree3f6b01110a81dd6300d5e89cd92e52c252baea4d
parentd1f465680e2163d586319eb1c501cc508acab43d
Ticket #2848: fixup of user-defined keymap load.

Modify algorithm of keymap files load:
1) Unconditionally load /usr/share/mc/mc.keymap
2) Unconditionally load /etc/mc/mc.keymap
Then load one of following user-defined keymaps, stop on success:
3) set via --keymap command line option
4) set via MC_KEYMAP environment variable
5) set via keymap key in config file
6) ~/.config/mc/mc.keymap

Fix of double load of keymap file if name is same as name of
system-wide keymap file.

Update man pages.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
doc/man/mc.1.in
doc/man/ru/mc.1.in
src/setup.c