Fix: handle tab size other than 8 in overwrite mode.

This commit is contained in:
Renaud 2016-02-23 22:00:05 +08:00
parent 893658b3ef
commit 3e27fcf19e
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ int execute(int c, int f, int n)
if (curwp->w_bufp->b_mode & MDOVER &&
curwp->w_doto < curwp->w_dotp->l_used &&
(lgetc(curwp->w_dotp, curwp->w_doto) != '\t' ||
(curwp->w_doto) % 8 == 7))
((curwp->w_doto) & tabmask) == tabmask))
ldelchar(1, FALSE);
/* do the appropriate insertion */