fold: fix tabstop column count

This commit is contained in:
Richard Ipsum 2020-10-09 15:52:07 +01:00 committed by Michael Forney
parent ab53d99375
commit 75b5499a3a

4
fold.c
View File

@ -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 {