Lines Matching defs:state
3567 static struct edstate *vs; /* current Vi editing mode state */
3587 static int state;
3613 state = VNORMAL;
3669 if (state != VLIT) {
3681 state != VVERSION) {
3716 switch (state) {
3737 state = VLIT;
3744 state = VNORMAL;
3747 if (state == VLIT) {
3763 state = VARG1;
3767 state = nextstate(ch);
3768 if (state == VSEARCH) {
3777 if (state == VVERSION) {
3796 state = VNORMAL;
3801 state = VNORMAL;
3810 state = nextstate(ch);
3818 state = VARG2;
3823 state = VCMD;
3825 state = nextstate(ch);
3827 state = VFAIL;
3841 state = VCMD;
3843 state = nextstate(ch);
3845 state = VFAIL;
3851 state = VNORMAL;
3854 state = VCMD;
3865 state = VNORMAL;
3873 state = VCMD;
3883 state = VNORMAL;
3935 state = VFAIL;
3961 switch (state) {
3964 state = VNORMAL;
3985 state = VNORMAL;
4016 state = VNORMAL;
4188 /* Don't save state in middle of macro.. */
4661 state = VPREFIX2;