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

Function em_kill_line

extern/editline/src/emacs.c:154–169  ·  view source on GitHub ↗

em_kill_line(): * Cut the entire line and save in cut buffer * [^U] */

Source from the content-addressed store, hash-verified

152 * [^U]
153 */
154protected el_action_t
155/*ARGSUSED*/
156em_kill_line(EditLine *el, Int c __attribute__((__unused__)))
157{
158 Char *kp, *cp;
159
160 cp = el->el_line.buffer;
161 kp = el->el_chared.c_kill.buf;
162 while (cp < el->el_line.lastchar)
163 *kp++ = *cp++; /* copy it */
164 el->el_chared.c_kill.last = kp;
165 /* zap! -- delete all of it */
166 el->el_line.lastchar = el->el_line.buffer;
167 el->el_line.cursor = el->el_line.buffer;
168 return CC_REFRESH;
169}
170
171
172/* em_kill_region():

Callers 1

vi_substitute_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected