Lines Matching refs:ep
207 int ed_expand(Edit_t *ep, char outbuff[],int *cur,int *eol,int mode, int count)
216 if(ep->e_nlist)
220 if(count> ep->e_nlist)
223 av[0] = ep->e_clist[count-1];
228 stakset(ep->e_stkptr,ep->e_stkoff);
229 ep->e_nlist = 0;
308 if(!var && !strchr(ap->argval,'/') && (((cp==outbuff&&ep->sh->nextprompt==1) || (strchr(";&|(",size)) && (cp==outbuff+1||size=='('||cp[-2]!='>') && *begin!='~' )))
313 if(ep->e_nlist)
322 com = sh_argbuild(ep->sh,&narg,comptr,0);
329 if(ep->sh->trapnote&SH_SIGSET)
354 ep->e_nlist = narg;
355 ep->e_clist = com;
399 if(ep->e_nlist && dir && var)
434 if(*cp=='/' && (pp=path_dirfind(ep->sh->pathlist,cp,'/')) && (np=nv_search(begin,ep->sh->track_tree,NV_ADD)))
464 if(ep->e_nlist)
487 if(!ep->e_nlist)
488 stakset(ep->e_stkptr,ep->e_stkoff);
512 int ed_macro(Edit_t *ep, register int i)
518 ep->e_macro[1] = i;
521 ep->e_macro[2] = ed_getchar(ep,1);
523 ep->e_macro[2] = 0;
524 if (isalnum(i)&&(np=nv_search(ep->e_macro,ep->sh->alias_tree,HASH_SCOPE))&&(out=nv_getval(np)))
543 ed_ungetchar(ep,buff[i]);
552 int ed_fulledit(Edit_t *ep)
558 if(ep->e_hline == ep->e_hismax)
560 if(ep->e_eol<0)
563 ep->e_inbuf[ep->e_eol+1] = 0;
564 ed_external(ep->e_inbuf, (char *)ep->e_inbuf);
566 sfwrite(shgd->hist_ptr->histfp,(char*)ep->e_inbuf,ep->e_eol+1);
570 cp = strcopy((char*)ep->e_inbuf,e_runvi);
571 cp = strcopy(cp, fmtbase((long)ep->e_hline,10,0));
572 ep->e_eol = ((unsigned char*)cp - (unsigned char*)ep->e_inbuf)-(sh_isoption(SH_VI)!=0);