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

Function ed_move_to_beg

extern/editline/src/common.c:229–246  ·  view source on GitHub ↗

ed_move_to_beg(): * Move cursor to the beginning of line * [^A] [^A] */

Source from the content-addressed store, hash-verified

227 * [^A] [^A]
228 */
229protected el_action_t
230/*ARGSUSED*/
231ed_move_to_beg(EditLine *el, Int c __attribute__((__unused__)))
232{
233
234 el->el_line.cursor = el->el_line.buffer;
235
236 if (el->el_map.type == MAP_VI) {
237 /* We want FIRST non space character */
238 while (Isspace(*el->el_line.cursor))
239 el->el_line.cursor++;
240 if (el->el_chared.c_vcmd.action != NOP) {
241 cv_delfini(el);
242 return CC_REFRESH;
243 }
244 }
245 return CC_CURSOR;
246}
247
248
249/* ed_transpose_chars():

Callers

nothing calls this directly

Calls 1

cv_delfiniFunction · 0.85

Tested by

no test coverage detected