em_delete_prev_char(): * Delete the character to the left of the cursor * [^?] */
| 490 | * [^?] |
| 491 | */ |
| 492 | protected el_action_t |
| 493 | /*ARGSUSED*/ |
| 494 | em_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 | } |
nothing calls this directly
no test coverage detected