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

Function map_get_editor

extern/editline/src/map.c:1100–1115  ·  view source on GitHub ↗

map_get_editor(): * Retrieve the editor */

Source from the content-addressed store, hash-verified

1098 * Retrieve the editor
1099 */
1100protected int
1101map_get_editor(EditLine *el, const Char **editor)
1102{
1103
1104 if (editor == NULL)
1105 return -1;
1106 switch (el->el_map.type) {
1107 case MAP_EMACS:
1108 *editor = STR("emacs");
1109 return 0;
1110 case MAP_VI:
1111 *editor = STR("vi");
1112 return 0;
1113 }
1114 return -1;
1115}
1116
1117
1118/* map_print_key():

Callers 1

FUN(el,get)Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected