From 3ec035c68bd48cdb619f1329c21eaf53d77abc81 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 12 Nov 2024 00:24:31 +0900 Subject: [PATCH] Fix incorrect overflow detection when --wrap is set Fix #4083 --- src/util/chars.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/chars.go b/src/util/chars.go index a0ea943..4b9cca0 100644 --- a/src/util/chars.go +++ b/src/util/chars.go @@ -306,5 +306,5 @@ func (chars *Chars) Lines(multiLine bool, maxLines int, wrapCols int, wrapSignWi } } - return wrapped, false + return wrapped, overflow }