vi_next_word(): * Vi move to the next word * [w] */
| 221 | * [w] |
| 222 | */ |
| 223 | protected el_action_t |
| 224 | /*ARGSUSED*/ |
| 225 | vi_next_word(EditLine *el, Int c __attribute__((__unused__))) |
| 226 | { |
| 227 | |
| 228 | if (el->el_line.cursor >= el->el_line.lastchar - 1) |
| 229 | return CC_ERROR; |
| 230 | |
| 231 | el->el_line.cursor = cv_next_word(el, el->el_line.cursor, |
| 232 | el->el_line.lastchar, el->el_state.argument, cv__isword); |
| 233 | |
| 234 | if (el->el_map.type == MAP_VI) |
| 235 | if (el->el_chared.c_vcmd.action != NOP) { |
| 236 | cv_delfini(el); |
| 237 | return CC_REFRESH; |
| 238 | } |
| 239 | return CC_CURSOR; |
| 240 | } |
| 241 | |
| 242 | |
| 243 | /* vi_change_case(): |
nothing calls this directly
no test coverage detected