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

Function map_set_editor

extern/editline/src/map.c:1081–1094  ·  view source on GitHub ↗

map_set_editor(): * Set the editor */

Source from the content-addressed store, hash-verified

1079 * Set the editor
1080 */
1081protected int
1082map_set_editor(EditLine *el, Char *editor)
1083{
1084
1085 if (Strcmp(editor, STR("emacs")) == 0) {
1086 map_init_emacs(el);
1087 return 0;
1088 }
1089 if (Strcmp(editor, STR("vi")) == 0) {
1090 map_init_vi(el);
1091 return 0;
1092 }
1093 return -1;
1094}
1095
1096
1097/* map_get_editor():

Callers 1

FUN(el,set)Function · 0.85

Calls 2

map_init_emacsFunction · 0.85
map_init_viFunction · 0.85

Tested by

no test coverage detected