ed_delete_prev_char(): * Delete the character to the left of the cursor * [^?] */
| 560 | * [^?] |
| 561 | */ |
| 562 | protected el_action_t |
| 563 | /*ARGSUSED*/ |
| 564 | ed_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(): |
nothing calls this directly
no test coverage detected