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

Function ed_move_to_end

extern/editline/src/common.c:206–222  ·  view source on GitHub ↗

ed_move_to_end(): * Move cursor to the end of line * [^E] [^E] */

Source from the content-addressed store, hash-verified

204 * [^E] [^E]
205 */
206protected el_action_t
207/*ARGSUSED*/
208ed_move_to_end(EditLine *el, Int c __attribute__((__unused__)))
209{
210
211 el->el_line.cursor = el->el_line.lastchar;
212 if (el->el_map.type == MAP_VI) {
213 if (el->el_chared.c_vcmd.action != NOP) {
214 cv_delfini(el);
215 return CC_REFRESH;
216 }
217#ifdef VI_MOVE
218 el->el_line.cursor--;
219#endif
220 }
221 return CC_CURSOR;
222}
223
224
225/* ed_move_to_beg():

Callers

nothing calls this directly

Calls 1

cv_delfiniFunction · 0.85

Tested by

no test coverage detected