Lines Matching refs:ed
48 # define echoctl (vp->ed->e_echoctl)
137 Edit_t *ed; /* pointer to edit data */ member
140 #define editb (*vp->ed)
143 #define putchar(c) ed_putchar(vp->ed,c)
219 Edit_t *ed = (Edit_t*)context; in ed_viread() local
222 register Vi_t *vp = ed->e_vi; in ed_viread()
242 ed->e_vi = vp = newof(0,Vi_t,1,0); in ed_viread()
245 vp->ed = ed; in ed_viread()
251 ed_setup(vp->ed,fd, reedit); in ed_viread()
456 last_phys = ed_virt_to_phys(vp->ed,virtual,physical,last_virt,0,0); in ed_viread()
484 ed_crlf(vp->ed); in ed_viread()
493 ed_crlf(vp->ed); in ed_viread()
559 if(vp->ed->e_multiline) in ed_viread()
595 if(vp->ed->e_multiline) in ed_viread()
600 if(ed->e_nlist) in ed_viread()
602 ed->e_nlist = 0; in ed_viread()
603 stakset(ed->e_stkptr,ed->e_stkoff); in ed_viread()
608 ed_crlf(vp->ed); in ed_viread()
740 while( c=ed_getchar(vp->ed,-1) ) in cntlmode()
807 if(vp->nonewline==0 && !vp->ed->e_nocrnl) in cntlmode()
825 ed_getchar(vp->ed,-1); in cntlmode()
952 if(ed_fulledit(vp->ed)==GOOD) in cntlmode()
1002 ed_ungetchar(vp->ed,x); in cntlmode()
1006 ed_ungetchar(vp->ed,c=ed_getchar(vp->ed,1)); in cntlmode()
1040 cur_phys = ed_setcursor(vp->ed, physical, cur_phys,x,vp->first_wind); in cursor()
1287 c = ed_getchar(vp->ed,-1); in getcount()
1331 if( (c=ed_getchar(vp->ed,mode==SEARCH?1:-2)) == usreof ) in getline()
1345 c = ed_getchar(vp->ed,2); in getline()
1488 …if(mode!=SEARCH && last_virt>=0 && (vp->ed->e_tabcount|| !isblank(cur_virt)) && vp->ed->sh->nextpr… in getline()
1490 if(vp->ed->e_tabcount==0) in getline()
1492 ed_ungetchar(vp->ed,'\\'); in getline()
1493 vp->ed->e_tabcount=1; in getline()
1496 else if(vp->ed->e_tabcount==1) in getline()
1498 ed_ungetchar(vp->ed,'='); in getline()
1501 vp->ed->e_tabcount = 0; in getline()
1567 switch(motion=getcount(vp,ed_getchar(vp->ed,-1))) in mvcursor()
1580 ed_ungetchar(vp->ed,'n'); in mvcursor()
1583 ed_ungetchar(vp->ed,'n'); in mvcursor()
1585 ed_ungetchar(vp->ed,'k'); in mvcursor()
1588 ed_ungetchar(vp->ed,'j'); in mvcursor()
1604 ed_ungetchar(vp->ed,motion); in mvcursor()
1849 ncur_phys = ed_virt_to_phys(vp->ed,virtual,physical,cur_virt,v,p); in refresh()
1955 if(vp->ed->e_multiline && vp->ofirst_wind==INVALID && !vp->ed->e_nocrnl) in refresh()
1956 ed_setcursor(vp->ed, physical, last_phys+1, last_phys+1, -1); in refresh()
1957 vp->ed->e_nocrnl = 0; in refresh()
1966 ed_flush(vp->ed); in refresh()
2025 ed_flush(vp->ed); in replace()
2282 ed_flush(vp->ed); in sync_cursor()
2321 if(vp->ed->e_tabcount!=1) in textmod()
2334 if(ed_expand(vp->ed,(char*)virtual, &cur_virt, &last_virt, c, vp->repeat_set?vp->repeat:-1)<0) in textmod()
2336 if(vp->ed->e_tabcount) in textmod()
2338 vp->ed->e_tabcount=2; in textmod()
2339 ed_ungetchar(vp->ed,'\t'); in textmod()
2350 ed_ungetchar(vp->ed,cntl('L')); in textmod()
2359 vp->ed->e_tabcount = 0; in textmod()
2372 if(ed_macro(vp->ed,c)) in textmod()
2422 ed_flush(vp->ed); in textmod()
2452 c = getcount(vp,ed_getchar(vp->ed,-1)); in textmod()
2481 c = getcount(vp,ed_getchar(vp->ed,-1)); in textmod()
2579 c = getcount(vp,ed_getchar(vp->ed,-1)); in textmod()
2660 if((c=ed_getchar(vp->ed,1))== usrlnext) in getrchar()
2661 c = ed_getchar(vp->ed,2); in getrchar()