commit 75b5499a3a9caa4b81214f82c3f0b5322376f918 parent ab53d9937586b558897a02d71f99c9965d9d4042 Author: Richard Ipsum <richardipsum@vx21.xyz> Date: Fri, 9 Oct 2020 15:52:07 +0100 fold: fix spacestop column count Diffstat:M fold.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --dropbox 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 {