vi_replace_char(): * Vi replace character under the cursor with the next character typed * [r] */
| 309 | * [r] |
| 310 | */ |
| 311 | protected el_action_t |
| 312 | /*ARGSUSED*/ |
| 313 | vi_replace_char(EditLine *el, Int c __attribute__((__unused__))) |
| 314 | { |
| 315 | |
| 316 | if (el->el_line.cursor >= el->el_line.lastchar) |
| 317 | return CC_ERROR; |
| 318 | |
| 319 | el->el_map.current = el->el_map.key; |
| 320 | el->el_state.inputmode = MODE_REPLACE_1; |
| 321 | cv_undo(el); |
| 322 | return CC_ARGHACK; |
| 323 | } |
| 324 | |
| 325 | |
| 326 | /* vi_replace_mode(): |