Lines Matching refs:new
111 SCR *new; in ex_N_edit() local
114 if (screen_init(sp->gp, sp, &new)) in ex_N_edit()
116 if ((cmdp->cmd == &cmds[C_VSPLIT] && vs_vsplit(sp, new)) || in ex_N_edit()
117 (cmdp->cmd != &cmds[C_VSPLIT] && vs_split(sp, new, 0))) { in ex_N_edit()
118 (void)screen_end(new); in ex_N_edit()
125 new->ep = sp->ep; in ex_N_edit()
126 ++new->ep->refcnt; in ex_N_edit()
128 new->frp = frp; in ex_N_edit()
129 new->frp->flags = sp->frp->flags; in ex_N_edit()
131 new->lno = sp->lno; in ex_N_edit()
132 new->cno = sp->cno; in ex_N_edit()
136 o_set(new, O_FILEENCODING, OS_STRDUP, in ex_N_edit()
138 conv_enc(new, O_FILEENCODING, 0); in ex_N_edit()
140 } else if (file_init(new, frp, NULL, in ex_N_edit()
142 (void)vs_discard(new, NULL); in ex_N_edit()
143 (void)screen_end(new); in ex_N_edit()
148 new->cargv = new->argv = ex_buildargv(sp, NULL, frp->name); in ex_N_edit()
151 sp->nextdisp = new; in ex_N_edit()