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