From 3e27fcf19ea864f489f8be2e6e8e7c87ffdc01e2 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Tue, 23 Feb 2016 22:00:05 +0800 Subject: [PATCH] Fix: handle tab size other than 8 in overwrite mode. --- execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execute.c b/execute.c index 02963fe..6e49ab7 100644 --- a/execute.c +++ b/execute.c @@ -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 */