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

Function vi_substitute_line

extern/editline/src/vi.c:361–372  ·  view source on GitHub ↗

vi_substitute_line(): * Vi substitute entire line * [S] */

Source from the content-addressed store, hash-verified

359 * [S]
360 */
361protected el_action_t
362/*ARGSUSED*/
363vi_substitute_line(EditLine *el, Int c __attribute__((__unused__)))
364{
365
366 cv_undo(el);
367 cv_yank(el, el->el_line.buffer,
368 (int)(el->el_line.lastchar - el->el_line.buffer));
369 (void) em_kill_line(el, 0);
370 el->el_map.current = el->el_map.key;
371 return CC_REFRESH;
372}
373
374
375/* vi_change_to_eol():

Callers

nothing calls this directly

Calls 3

cv_undoFunction · 0.85
cv_yankFunction · 0.85
em_kill_lineFunction · 0.85

Tested by

no test coverage detected