vi_delete_prev_char(): * Vi move to previous character (backspace) * [^H] in insert mode only */
| 584 | * [^H] in insert mode only |
| 585 | */ |
| 586 | protected el_action_t |
| 587 | /*ARGSUSED*/ |
| 588 | vi_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(): |
nothing calls this directly
no test coverage detected