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

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

View File

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