bind.c (119610) | bind.c (125759) |
---|---|
1/* bind.c -- key binding and startup file support for the readline library. */ 2 3/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. 4 5 This file is part of the GNU Readline Library, a library for 6 reading lines of text with interactive input and history editing. 7 8 The GNU Readline Library is free software; you can redistribute it --- 297 unchanged lines hidden (view full) --- 306 } 307 map = FUNCTION_TO_KEYMAP (map, ic); 308 /* The dispatch code will return this function if no matching 309 key sequence is found in the keymap. This (with a little 310 help from the dispatch code in readline.c) allows `a' to be 311 mapped to something, `abc' to be mapped to something else, 312 and the function bound to `a' to be executed when the user 313 types `abx', leaving `bx' in the input queue. */ | 1/* bind.c -- key binding and startup file support for the readline library. */ 2 3/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. 4 5 This file is part of the GNU Readline Library, a library for 6 reading lines of text with interactive input and history editing. 7 8 The GNU Readline Library is free software; you can redistribute it --- 297 unchanged lines hidden (view full) --- 306 } 307 map = FUNCTION_TO_KEYMAP (map, ic); 308 /* The dispatch code will return this function if no matching 309 key sequence is found in the keymap. This (with a little 310 help from the dispatch code in readline.c) allows `a' to be 311 mapped to something, `abc' to be mapped to something else, 312 and the function bound to `a' to be executed when the user 313 types `abx', leaving `bx' in the input queue. */ |
314 if (k.function /* && k.type == ISFUNC */) | 314 if (k.function && ((k.type == ISFUNC && k.function != rl_do_lowercase_version) || k.type == ISMACR)) |
315 { 316 map[ANYOTHERKEY] = k; 317 k.function = 0; 318 } 319 } 320 else 321 { 322 if (map[ic].type == ISMACR) --- 1828 unchanged lines hidden --- | 315 { 316 map[ANYOTHERKEY] = k; 317 k.function = 0; 318 } 319 } 320 else 321 { 322 if (map[ic].type == ISMACR) --- 1828 unchanged lines hidden --- |