Add 2 as a valid value of tab length. {2, 4, 8}

This commit is contained in:
Renaud 2015-05-05 19:42:53 +08:00
parent 42d4a6be70
commit 6dfc2f057e
1 changed files with 1 additions and 1 deletions

2
eval.c
View File

@ -1047,7 +1047,7 @@ static int svar(struct variable_description *var, char *value)
break;
case EVTAB:
tabmask = atoi(value) - 1;
if (tabmask != 0x07 && tabmask != 0x03)
if( tabmask != 0x07 && tabmask != 0x03 && tabmask != 1)
tabmask = 0x07;
curwp->w_flag |= WFHARD;
break;