Home
last modified time | relevance | path

Searched refs:el_map (Results 1 – 15 of 15) sorted by relevance

/external/libedit/src/
Dmap.c906 el->el_map.alt = el_malloc(sizeof(*el->el_map.alt) * N_KEYS); in map_init()
907 if (el->el_map.alt == NULL) in map_init()
909 el->el_map.key = el_malloc(sizeof(*el->el_map.key) * N_KEYS); in map_init()
910 if (el->el_map.key == NULL) in map_init()
912 el->el_map.emacs = el_map_emacs; in map_init()
913 el->el_map.vic = el_map_vi_command; in map_init()
914 el->el_map.vii = el_map_vi_insert; in map_init()
915 el->el_map.help = el_malloc(sizeof(*el->el_map.help) * EL_NUM_FCNS); in map_init()
916 if (el->el_map.help == NULL) in map_init()
918 (void) memcpy(el->el_map.help, help__get(), in map_init()
[all …]
Dvi.c80 el->el_map.current = el->el_map.key; in cv_action()
210 if (el->el_map.type == MAP_VI) in vi_next_big_word()
234 if (el->el_map.type == MAP_VI) in vi_next_word()
302 el->el_map.current = el->el_map.key; in vi_insert_at_bol()
319 el->el_map.current = el->el_map.key; in vi_replace_char()
335 el->el_map.current = el->el_map.key; in vi_replace_mode()
352 el->el_map.current = el->el_map.key; in vi_substitute_char()
370 el->el_map.current = el->el_map.key; in vi_substitute_line()
388 el->el_map.current = el->el_map.key; in vi_change_to_eol()
402 el->el_map.current = el->el_map.key; in vi_insert()
[all …]
Dread.c269 cmd = el->el_map.current[(unsigned char) *ch]; in read_getcmd()
290 if (el->el_map.alt == NULL) in read_getcmd()
291 el->el_map.current = el->el_map.key; in read_getcmd()
600 if ((unsigned int)cmdnum >= (unsigned int)el->el_map.nfunc) { /* BUG CHECK command */ in FUN()
611 for (b = el->el_map.help; b->name; b++) in FUN()
625 if (el->el_map.type == MAP_VI && in FUN()
626 el->el_map.current == el->el_map.key && in FUN()
635 retval = (*el->el_map.func[cmdnum]) (el, ch); in FUN()
Dcommon.c151 if (el->el_map.type == MAP_VI) { in ed_delete_next_char()
172 if (el->el_map.type == MAP_VI && in ed_delete_next_char()
212 if (el->el_map.type == MAP_VI) { in ed_move_to_end()
236 if (el->el_map.type == MAP_VI) { in ed_move_to_beg()
286 el->el_map.type == MAP_VI && in ed_next_char()
294 if (el->el_map.type == MAP_VI) in ed_next_char()
320 if (el->el_map.type == MAP_VI) in ed_prev_word()
343 if (el->el_map.type == MAP_VI) in ed_prev_char()
659 if (el->el_map.type == MAP_VI) { in ed_prev_history()
916 el->el_map.current = el->el_map.key; in ed_command()
Dchared.c124 if (el->el_map.current != el->el_map.emacs) { in c_delafter()
165 if (el->el_map.current != el->el_map.emacs) { in c_delbefore()
339 el->el_map.current = el->el_map.key; in cv_delfini()
438 el->el_map.current = el->el_map.key; in ch_init()
471 el->el_map.current = el->el_map.key; in ch_reset()
Dkeymacro.c226 ((map == el->el_map.key && in keymacro_clear()
227 el->el_map.alt[(unsigned char)*in] != ED_SEQUENCE_LEAD_IN) || in keymacro_clear()
228 (map == el->el_map.alt && in keymacro_clear()
229 el->el_map.key[(unsigned char)*in] != ED_SEQUENCE_LEAD_IN))) in keymacro_clear()
603 for (fp = el->el_map.help; fp->name; fp++) in keymacro_kprint()
Dhist.c110 if (el->el_map.type == MAP_VI) in hist_get()
143 if (el->el_map.type == MAP_VI) in hist_get()
Dsearch.c60 ((el)->el_line.cursor + (((el)->el_map.type == MAP_VI) && \
61 ((el)->el_map.current == (el)->el_map.alt)))
256 switch (el->el_map.current[(unsigned char) ch]) { in ce_inc_search()
Dtty.c910 map = el->el_map.key; in tty_bind_char()
911 alt = el->el_map.alt; in tty_bind_char()
912 if (el->el_map.type == MAP_VI) { in tty_bind_char()
913 dmap = el->el_map.vii; in tty_bind_char()
914 dalt = el->el_map.vic; in tty_bind_char()
916 dmap = el->el_map.emacs; in tty_bind_char()
930 map[UC(new[0])] = tp->bind[el->el_map.type]; in tty_bind_char()
935 alt[UC(new[0])] = tp->bind[el->el_map.type + 1]; in tty_bind_char()
Dterminal.c1077 if (el->el_map.type != MAP_VI) in terminal_reset_arrow()
1162 if (el->el_terminal.t_buf == NULL || el->el_map.key == NULL) in terminal_bind_arrow()
1165 map = el->el_map.type == MAP_VI ? el->el_map.alt : el->el_map.key; in terminal_bind_arrow()
1166 dmap = el->el_map.type == MAP_VI ? el->el_map.vic : el->el_map.emacs; in terminal_bind_arrow()
Del.h138 el_map_t el_map; /* Key mapping stuff */ member
Drefresh.c224 if (el->el_map.current == el->el_map.alt in re_refresh()
998 if (el->el_map.current == el->el_map.alt in re_refresh_cursor()
Dparse.c281 for (b = el->el_map.help; b->name != NULL; b++) in parse_cmd()
Demacs.c270 if (el->el_map.type == MAP_VI) in em_next_word()
Dreadline.c1823 e->el_map.key[c] = ED_INSERT; in rl_bind_key()