Lines Matching refs:cur_virt

141 #define cur_virt	editb.e_cur		/* current virtual column */
367 cur_virt = i;
442 --cur_virt;
556 cur_virt = last_virt;
632 * This routine will append char after cur_virt in the virtual image.
644 if( mode==APPEND || (cur_virt==last_virt && last_virt>=0))
646 j = (cur_virt>=0?cur_virt:0);
650 virtual[++cur_virt] = c;
659 * This routine will position cur_virt at the nth previous word.
665 register int tcur_virt = cur_virt;
695 cur_virt = ++tcur_virt;
730 if( cur_virt > INVALID )
736 cur_virt++;
748 cur_virt = 0;
883 cur_virt = INVALID;
918 cur_virt = INVALID;
920 if(curhline!=histmax || cur_virt==INVALID)
932 if((last_virt=genlen(virtual)-1) >= 0 && cur_virt == INVALID)
933 cur_virt = 0;
942 cur_virt = 0;
960 cur_virt = 0;
981 cur_virt = INVALID;
994 if( cur_virt != INVALID )
1014 cur_virt = p-virtual;
1022 cur_virt = 0;
1093 * Delete nchars from the virtual space and leave cur_virt positioned
1094 * at cur_virt-1.
1107 if( cur_virt < first_virt )
1114 cp = virtual+cur_virt;
1116 if( (cur_virt-- + nchars) > last_virt )
1119 nchars = last_virt - cur_virt;
1157 cur_virt = 0;
1162 cur_virt = INVALID;
1194 if( cur_virt == INVALID )
1198 begin = cur_virt;
1208 end = cur_virt;
1222 cur_virt = begin;
1233 cur_virt = begin;
1240 * This routine will move cur_virt to the end of the nth word.
1246 register int tcur_virt = cur_virt;
1271 cur_virt = tcur_virt;
1277 * This routine will move cur_virt forward to the next nth word.
1283 register int tcur_virt = cur_virt;
1308 cur_virt = tcur_virt;
1420 c = max_virt-cur_virt;
1421 if(c > 0 && last_save>=cur_virt)
1423 genncpy((&virtual[cur_virt]),&saveline[cur_virt],c);
1428 --cur_virt;
1456 cdelete(vp,cur_virt+1, BAD);
1457 cur_virt = -1;
1463 if( virtual[cur_virt] == '\\' )
1470 if( mode==SEARCH && cur_virt==0 )
1478 if(cur_virt<=first_virt)
1481 --cur_virt;
1492 if( cur_virt > first_virt &&
1493 !isblank(cur_virt) &&
1494 !ispunct(virtual[cur_virt]) &&
1495 isblank(cur_virt-1) )
1501 tmp = cur_virt;
1503 cdelete(vp,tmp - cur_virt + 1, BAD);
1508 if( virtual[cur_virt] == '\\' )
1517 cur_virt = 1;
1522 tmp = cur_virt;
1523 cur_virt = first_virt;
1524 cdelete(vp,tmp - cur_virt + 1, BAD);
1532 if( cur_virt != INVALID )
1544 if(mode!=SEARCH && last_virt>=0 && (vp->ed->e_tabcount|| !isblank(cur_virt)) && vp->ed->sh->nextprompt)
1546 if(virtual[cur_virt]=='\\')
1548 virtual[cur_virt] = '\t';
1568 if( cur_virt < last_virt )
1571 if(cur_virt>max_virt)
1572 max_virt = cur_virt;
1632 if(!vp->ed->hlist && cur_virt>=0 && cur_virt<(SEARCHSIZE-2) && cur_virt == last_virt)
1634 if(cur_virt>=0 && cur_virt<(SEARCHSIZE-2) && cur_virt == last_virt)
1647 else if(cur_virt==0 && vp->direction == -2)
1684 tcur_virt = cur_virt;
1697 tcur_virt = cur_virt;
1699 if( cur_virt == tcur_virt )
1705 tcur_virt = cur_virt;
1708 if( cur_virt == tcur_virt )
1750 tcur_virt = cur_virt;
1769 tcur_virt = cur_virt;
1800 tcur_virt = cur_virt;
1802 if( tcur_virt == cur_virt )
1809 cur_virt = tcur_virt;
1857 * cur_virt last_virt
1891 v = cur_virt;
1938 ncur_phys = ed_virt_to_phys(vp->ed,virtual,physical,cur_virt,v,p);
1983 && cur_virt==vp->ocur_virt )
2048 vp->ocur_virt = cur_virt;
2051 if( mode==INPUT && cur_virt>INVALID )
2061 * Replace the cur_virt character with char. This routine attempts
2064 * increment = 1, increment cur_virt after replacement.
2065 * = 0, leave cur_virt where it is.
2073 if( cur_virt == INVALID )
2081 || !is_print(virtual[cur_virt])
2085 || !iswascii(virtual[cur_virt])
2088 || !is_print(virtual[cur_virt+1])) )
2094 if( increment && cur_virt<last_virt )
2095 ++cur_virt;
2100 virtual[cur_virt] = c;
2106 c = virtual[++cur_virt];
2140 cur_virt = tmpcol;
2156 if( (i = cur_virt - first_virt + 1) > 0 )
2179 vp->u_column = cur_virt;
2238 if( cur_virt == INVALID )
2244 if( cur_virt==0 || fold(mode)=='N' )
2279 cur_virt = i;
2308 if( cur_virt == INVALID )
2314 if(vp->first_wind==vp->ofirst_wind && cur_virt>vp->ocur_virt && vp->ocur_virt!=INVALID)
2336 if( v != cur_virt )
2355 if( v == cur_virt )
2374 vp->ocur_virt = cur_virt;
2416 if( cur_virt == INVALID )
2422 mode = cur_virt-1;
2424 if(ed_expand(vp->ed,(char*)virtual, &cur_virt, &last_virt, c, vp->repeat_set?vp->repeat:-1)<0)
2445 --cur_virt;
2448 if(c=='=' || (mode<cur_virt && (virtual[cur_virt]==' ' || virtual[cur_virt]=='/')))
2498 cur_virt = last_virt;
2508 if( cur_virt != INVALID )
2510 first_virt = cur_virt + 1;
2517 cur_virt = first_virt;
2527 if( cur_virt != INVALID )
2529 vp->o_v_char = virtual[cur_virt];
2530 first_virt = cur_virt--;
2560 first_virt = cur_virt + 1;
2581 if( cur_virt < last_virt )
2582 ++cur_virt;
2588 if( cur_virt != INVALID )
2590 i = virtual[cur_virt];
2593 --cur_virt;
2605 /*** fix stored cur_virt ***/
2629 if( cur_virt != INVALID )
2630 first_virt = cur_virt;
2658 first_virt = cur_virt + 1;
2691 if( cur_virt != INVALID )
2695 while(trepeat-->0 && i!=cur_virt)
2697 i = cur_virt;
2698 c = virtual[cur_virt];