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

Function ed_next_char

extern/editline/src/common.c:278–300  ·  view source on GitHub ↗

ed_next_char(): * Move to the right one character * [^F] [^F] */

Source from the content-addressed store, hash-verified

276 * [^F] [^F]
277 */
278protected el_action_t
279/*ARGSUSED*/
280ed_next_char(EditLine *el, Int c __attribute__((__unused__)))
281{
282 Char *lim = el->el_line.lastchar;
283
284 if (el->el_line.cursor >= lim ||
285 (el->el_line.cursor == lim - 1 &&
286 el->el_map.type == MAP_VI &&
287 el->el_chared.c_vcmd.action == NOP))
288 return CC_ERROR;
289
290 el->el_line.cursor += el->el_state.argument;
291 if (el->el_line.cursor > lim)
292 el->el_line.cursor = lim;
293
294 if (el->el_map.type == MAP_VI)
295 if (el->el_chared.c_vcmd.action != NOP) {
296 cv_delfini(el);
297 return CC_REFRESH;
298 }
299 return CC_CURSOR;
300}
301
302
303/* ed_prev_word():

Callers 1

vi_to_columnFunction · 0.85

Calls 1

cv_delfiniFunction · 0.85

Tested by

no test coverage detected