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

Function em_delete_prev_char

extern/editline/src/emacs.c:492–508  ·  view source on GitHub ↗

em_delete_prev_char(): * Delete the character to the left of the cursor * [^?] */

Source from the content-addressed store, hash-verified

490 * [^?]
491 */
492protected el_action_t
493/*ARGSUSED*/
494em_delete_prev_char(EditLine *el, Int c __attribute__((__unused__)))
495{
496
497 if (el->el_line.cursor <= el->el_line.buffer)
498 return CC_ERROR;
499
500 if (el->el_state.doingarg)
501 c_delbefore(el, el->el_state.argument);
502 else
503 c_delbefore1(el);
504 el->el_line.cursor -= el->el_state.argument;
505 if (el->el_line.cursor < el->el_line.buffer)
506 el->el_line.cursor = el->el_line.buffer;
507 return CC_REFRESH;
508}

Callers

nothing calls this directly

Calls 2

c_delbeforeFunction · 0.85
c_delbefore1Function · 0.85

Tested by

no test coverage detected