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;
303 if(!var && !strchr(ap->argval,'/') && (((cp==outbuff&&ep->sh->nextprompt==1) || (strchr(";&|(",size)) && (cp==outbuff+1||size=='('||cp[-2]!='>') && *begin!='~' )))
308 if(ep->e_nlist)
317 com = sh_argbuild(ep->sh,&narg,comptr,0);
324 if(ep->sh->trapnote&SH_SIGSET)
347 ep->e_nlist = narg;
348 ep->e_clist = com;
392 if(ep->e_nlist && dir && var)
427 if(*cp=='/' && (pp=path_dirfind(ep->sh->pathlist,cp,'/')) && (np=nv_search(begin,ep->sh->track_tree,NV_ADD)))
457 if(ep->e_nlist)
480 if(!ep->e_nlist)
481 stakset(ep->e_stkptr,ep->e_stkoff);
505 int ed_macro(Edit_t *ep, register int i)
511 ep->e_macro[1] = i;
514 ep->e_macro[2] = ed_getchar(ep,1);
516 ep->e_macro[2] = 0;
517 if (isalnum(i)&&(np=nv_search(ep->e_macro,ep->sh->alias_tree,HASH_SCOPE))&&(out=nv_getval(np)))
536 ed_ungetchar(ep,buff[i]);
545 int ed_fulledit(Edit_t *ep)
551 if(ep->e_hline == ep->e_hismax)
553 if(ep->e_eol<0)
556 ep->e_inbuf[ep->e_eol+1] = 0;
557 ed_external(ep->e_inbuf, (char *)ep->e_inbuf);
559 sfwrite(shgd->hist_ptr->histfp,(char*)ep->e_inbuf,ep->e_eol+1);
563 cp = strcopy((char*)ep->e_inbuf,e_runvi);
564 cp = strcopy(cp, fmtbase((long)ep->e_hline,10,0));
565 ep->e_eol = ((unsigned char*)cp - (unsigned char*)ep->e_inbuf)-(sh_isoption(SH_VI)!=0);