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

Function ed_delete_prev_char

extern/editline/src/common.c:562–575  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

560 * [^?]
561 */
562protected el_action_t
563/*ARGSUSED*/
564ed_delete_prev_char(EditLine *el, Int c __attribute__((__unused__)))
565{
566
567 if (el->el_line.cursor <= el->el_line.buffer)
568 return CC_ERROR;
569
570 c_delbefore(el, el->el_state.argument);
571 el->el_line.cursor -= el->el_state.argument;
572 if (el->el_line.cursor < el->el_line.buffer)
573 el->el_line.cursor = el->el_line.buffer;
574 return CC_REFRESH;
575}
576
577
578/* ed_clear_screen():

Callers

nothing calls this directly

Calls 1

c_delbeforeFunction · 0.85

Tested by

no test coverage detected