MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / keymacro_clear

Function keymacro_clear

extern/editline/src/keymacro.c:218–231  ·  view source on GitHub ↗

keymacro_clear(): * */

Source from the content-addressed store, hash-verified

216 *
217 */
218protected void
219keymacro_clear(EditLine *el, el_action_t *map, const Char *in)
220{
221#ifdef WIDECHAR
222 if (*in > N_KEYS) /* can't be in the map */
223 return;
224#endif
225 if ((map[(unsigned char)*in] == ED_SEQUENCE_LEAD_IN) &&
226 ((map == el->el_map.key &&
227 el->el_map.alt[(unsigned char)*in] != ED_SEQUENCE_LEAD_IN) ||
228 (map == el->el_map.alt &&
229 el->el_map.key[(unsigned char)*in] != ED_SEQUENCE_LEAD_IN)))
230 (void) keymacro_delete(el, in);
231}
232
233
234/* keymacro_delete():

Callers 3

tty_bind_charFunction · 0.85
map_bindFunction · 0.85
terminal_bind_arrowFunction · 0.85

Calls 1

keymacro_deleteFunction · 0.85

Tested by

no test coverage detected