1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-06-06 12:10:42 +00:00

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

2
eval.c
View File

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