* 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".
Этот коммит содержится в:
родитель
b01dc1030f
Коммит
7ff781db70
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user