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

Function vi_delete_prev_char

extern/editline/src/vi.c:586–597  ·  view source on GitHub ↗

vi_delete_prev_char(): * Vi move to previous character (backspace) * [^H] in insert mode only */

Source from the content-addressed store, hash-verified

584 * [^H] in insert mode only
585 */
586protected el_action_t
587/*ARGSUSED*/
588vi_delete_prev_char(EditLine *el, Int c __attribute__((__unused__)))
589{
590
591 if (el->el_line.cursor <= el->el_line.buffer)
592 return CC_ERROR;
593
594 c_delbefore1(el);
595 el->el_line.cursor--;
596 return CC_REFRESH;
597}
598
599
600/* vi_list_or_eof():

Callers

nothing calls this directly

Calls 1

c_delbefore1Function · 0.85

Tested by

no test coverage detected