2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1992, 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
12 #include <sys/types.h>
13 #include <sys/queue.h>
16 #include <bitstring.h>
20 #include "../common/common.h"
23 * ex_yank -- :[line [,line]] ya[nk] [buffer] [count]
24 * Yank the lines into a buffer.
26 * PUBLIC: int ex_yank(SCR *, EXCMD *);
29 ex_yank(SCR *sp, EXCMD *cmdp)
35 * Historically, yanking lines in ex didn't count toward the
36 * number-of-lines-yanked report.
39 FL_ISSET(cmdp->iflags, E_C_BUFFER) ? &cmdp->buffer : NULL,
40 &cmdp->addr1, &cmdp->addr2, CUT_LINEMODE));