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

Function map_init_vi

extern/editline/src/map.c:1017–1041  ·  view source on GitHub ↗

map_init_vi(): * Initialize the vi bindings */

Source from the content-addressed store, hash-verified

1015 * Initialize the vi bindings
1016 */
1017protected void
1018map_init_vi(EditLine *el)
1019{
1020 int i;
1021 el_action_t *key = el->el_map.key;
1022 el_action_t *alt = el->el_map.alt;
1023 const el_action_t *vii = el->el_map.vii;
1024 const el_action_t *vic = el->el_map.vic;
1025
1026 el->el_map.type = MAP_VI;
1027 el->el_map.current = el->el_map.key;
1028
1029 keymacro_reset(el);
1030
1031 for (i = 0; i < N_KEYS; i++) {
1032 key[i] = vii[i];
1033 alt[i] = vic[i];
1034 }
1035
1036 map_init_meta(el);
1037 map_init_nls(el);
1038
1039 tty_bind_char(el, 1);
1040 terminal_bind_arrow(el);
1041}
1042
1043
1044/* map_init_emacs():

Callers 3

map_initFunction · 0.85
map_set_editorFunction · 0.85
map_bindFunction · 0.85

Calls 5

keymacro_resetFunction · 0.85
map_init_metaFunction · 0.85
map_init_nlsFunction · 0.85
tty_bind_charFunction · 0.85
terminal_bind_arrowFunction · 0.85

Tested by

no test coverage detected