Lines Matching refs:news
3561 static void restore_edstate(struct edstate *old, struct edstate *news);
4900 struct edstate *news;
4902 news = alloc(sizeof(struct edstate), AEDIT);
4903 news->cbuf = alloc(old->cbufsize, AEDIT);
4904 memcpy(news->cbuf, old->cbuf, old->linelen);
4905 news->cbufsize = old->cbufsize;
4906 news->linelen = old->linelen;
4907 news->cursor = old->cursor;
4908 news->winleft = old->winleft;
4909 return (news);
4913 restore_edstate(struct edstate *news, struct edstate *old)
4915 memcpy(news->cbuf, old->cbuf, old->linelen);
4916 news->linelen = old->linelen;
4917 news->cursor = old->cursor;
4918 news->winleft = old->winleft;