diff --git a/src/ChangeLog b/src/ChangeLog index 0cc536fa8..bf34476f3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,15 @@ to fit into memory. (load_view_file): Fix avoid mmaping just part of a >=4GB file on 32-bit arches. + + * setup.c (load_keys_from_section): Handle "copy". + gnome-terminal started using TERM=gnome instead of TERM=xterm, + so does rxvt etc. + Instead of making mc.lib really huge and hard to edit + by repeating same keys for every xterm alternative, + I have added a special key "copy", with argument name of terminal. + mc will in this case read the keys from the referenced terminal's + keys from the same file as well. 2004-09-04 Jakub Jelinek diff --git a/src/setup.c b/src/setup.c index 9730c5e7b..34f93bfe0 100644 --- a/src/setup.c +++ b/src/setup.c @@ -598,6 +598,13 @@ load_keys_from_section (const char *terminal, const char *profile_name) g_free (section_name); while (profile_keys){ profile_keys = profile_iterator_next (profile_keys, &key, &value); + + /* copy=other causes all keys from [terminal:other] to be loaded. */ + if (g_strcasecmp (key, "copy") == 0) { + load_keys_from_section (value, profile_name); + continue; + } + key_code = lookup_key (key); if (key_code){ valcopy = convert_controls (value);