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

Function vi_command_mode

extern/editline/src/vi.c:541–559  ·  view source on GitHub ↗

vi_command_mode(): * Vi enter command mode (use alternative key bindings) * [ ] */

Source from the content-addressed store, hash-verified

539 * [<ESC>]
540 */
541protected el_action_t
542/*ARGSUSED*/
543vi_command_mode(EditLine *el, Int c __attribute__((__unused__)))
544{
545
546 /* [Esc] cancels pending action */
547 el->el_chared.c_vcmd.action = NOP;
548 el->el_chared.c_vcmd.pos = 0;
549
550 el->el_state.doingarg = 0;
551
552 el->el_state.inputmode = MODE_INSERT;
553 el->el_map.current = el->el_map.alt;
554#ifdef VI_MOVE
555 if (el->el_line.cursor > el->el_line.buffer)
556 el->el_line.cursor--;
557#endif
558 return CC_CURSOR;
559}
560
561
562/* vi_zero():

Callers 1

ed_insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected