From 980f236d84c8a6b23a7204578c0e6527bcfed7e3 Mon Sep 17 00:00:00 2001 From: asdf Date: Sun, 21 Jun 2020 14:24:12 +1000 Subject: [PATCH] Corrects wrapped lines to ensure they fit the required terminal width --- page.go | 1 + 1 file changed, 1 insertion(+) diff --git a/page.go b/page.go index 6973a7c..ad44ab2 100644 --- a/page.go +++ b/page.go @@ -130,6 +130,7 @@ func (p *Page) WrapContent(width int, color bool) { counter += len(spacer) } content.WriteRune(ch) + counter++ } } }