* view.c (get_byte): Fix avoid dying if file is too large

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".
This commit is contained in:
Andrew V. Samoilov 2004-09-10 09:25:20 +00:00
parent b01dc1030f
commit 7ff781db70
2 changed files with 16 additions and 0 deletions

View File

@ -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 <jakub@redhat.com>

View File

@ -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);