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

Function vi_prev_word

extern/editline/src/vi.c:174–192  ·  view source on GitHub ↗

vi_prev_word(): * Vi move to the previous word * [b] */

Source from the content-addressed store, hash-verified

172 * [b]
173 */
174protected el_action_t
175/*ARGSUSED*/
176vi_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():

Callers

nothing calls this directly

Calls 2

cv_prev_wordFunction · 0.85
cv_delfiniFunction · 0.85

Tested by

no test coverage detected