vi_prev_word(): * Vi move to the previous word * [b] */
| 172 | * [b] |
| 173 | */ |
| 174 | protected el_action_t |
| 175 | /*ARGSUSED*/ |
| 176 | vi_prev_word(EditLine *el, Int c __attribute__((__unused__))) |
| 177 | { |
| 178 | |
| 179 | if (el->el_line.cursor == el->el_line.buffer) |
| 180 | return CC_ERROR; |
| 181 | |
| 182 | el->el_line.cursor = cv_prev_word(el->el_line.cursor, |
| 183 | el->el_line.buffer, |
| 184 | el->el_state.argument, |
| 185 | cv__isword); |
| 186 | |
| 187 | if (el->el_chared.c_vcmd.action != NOP) { |
| 188 | cv_delfini(el); |
| 189 | return CC_REFRESH; |
| 190 | } |
| 191 | return CC_CURSOR; |
| 192 | } |
| 193 | |
| 194 | |
| 195 | /* vi_next_big_word(): |
nothing calls this directly
no test coverage detected