1
1

* 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".
Этот коммит содержится в:
Andrew V. Samoilov 2004-09-10 09:25:20 +00:00
родитель b01dc1030f
Коммит 7ff781db70
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -5,6 +5,15 @@
(load_view_file): Fix avoid mmaping just part of a >=4GB file (load_view_file): Fix avoid mmaping just part of a >=4GB file
on 32-bit arches. 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> 2004-09-04 Jakub Jelinek <jakub@redhat.com>
* info.c (info_show_info): don't truncate block counts to 32 bits * info.c (info_show_info): don't truncate block counts to 32 bits

Просмотреть файл

@ -598,6 +598,13 @@ load_keys_from_section (const char *terminal, const char *profile_name)
g_free (section_name); g_free (section_name);
while (profile_keys){ while (profile_keys){
profile_keys = profile_iterator_next (profile_keys, &key, &value); 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); key_code = lookup_key (key);
if (key_code){ if (key_code){
valcopy = convert_controls (value); valcopy = convert_controls (value);