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

Function ed_prev_word

extern/editline/src/common.c:307–326  ·  view source on GitHub ↗

ed_prev_word(): * Move to the beginning of the current word * [M-b] [b] */

Source from the content-addressed store, hash-verified

305 * [M-b] [b]
306 */
307protected el_action_t
308/*ARGSUSED*/
309ed_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():

Callers

nothing calls this directly

Calls 2

c__prev_wordFunction · 0.85
cv_delfiniFunction · 0.85

Tested by

no test coverage detected