vi_substitute_line(): * Vi substitute entire line * [S] */
| 359 | * [S] |
| 360 | */ |
| 361 | protected el_action_t |
| 362 | /*ARGSUSED*/ |
| 363 | vi_substitute_line(EditLine *el, Int c __attribute__((__unused__))) |
| 364 | { |
| 365 | |
| 366 | cv_undo(el); |
| 367 | cv_yank(el, el->el_line.buffer, |
| 368 | (int)(el->el_line.lastchar - el->el_line.buffer)); |
| 369 | (void) em_kill_line(el, 0); |
| 370 | el->el_map.current = el->el_map.key; |
| 371 | return CC_REFRESH; |
| 372 | } |
| 373 | |
| 374 | |
| 375 | /* vi_change_to_eol(): |
nothing calls this directly
no test coverage detected