ed_prev_word(): * Move to the beginning of the current word * [M-b] [b] */
| 305 | * [M-b] [b] |
| 306 | */ |
| 307 | protected el_action_t |
| 308 | /*ARGSUSED*/ |
| 309 | ed_prev_word(EditLine *el, Int c __attribute__((__unused__))) |
| 310 | { |
| 311 | |
| 312 | if (el->el_line.cursor == el->el_line.buffer) |
| 313 | return CC_ERROR; |
| 314 | |
| 315 | el->el_line.cursor = c__prev_word(el->el_line.cursor, |
| 316 | el->el_line.buffer, |
| 317 | el->el_state.argument, |
| 318 | ce__isword); |
| 319 | |
| 320 | if (el->el_map.type == MAP_VI) |
| 321 | if (el->el_chared.c_vcmd.action != NOP) { |
| 322 | cv_delfini(el); |
| 323 | return CC_REFRESH; |
| 324 | } |
| 325 | return CC_CURSOR; |
| 326 | } |
| 327 | |
| 328 | |
| 329 | /* ed_prev_char(): |
nothing calls this directly
no test coverage detected