sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 75b5499a3a9caa4b81214f82c3f0b5322376f918
parent ab53d9937586b558897a02d71f99c9965d9d4042
Author: Richard Ipsum <richardipsum@vx21.xyz>
Date:   Fri,  9 Oct 2020 15:52:07 +0100

fold: fix tabstop column count

Diffstat:
Mfold.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fold.c b/fold.c @@ -39,7 +39,9 @@ foldline(struct line *l) { col = 0; break; case '\t': - col += (col + 1) % 8; + col += (8 - (col % 8)); + if (col >= width) + i--; break; } } else {