MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / vi_next_word

Function vi_next_word

extern/editline/src/vi.c:223–240  ·  view source on GitHub ↗

vi_next_word(): * Vi move to the next word * [w] */

Source from the content-addressed store, hash-verified

221 * [w]
222 */
223protected el_action_t
224/*ARGSUSED*/
225vi_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():

Callers

nothing calls this directly

Calls 2

cv_next_wordFunction · 0.85
cv_delfiniFunction · 0.85

Tested by

no test coverage detected