summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-11-12 00:24:31 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-11-12 00:33:07 +0900
commit3ec035c68bd48cdb619f1329c21eaf53d77abc81 (patch)
tree6e58988265f3de18797e79ebfdce05c7c908760e
parent20c7dcfbca8752224c6feb00e758d86e10790019 (diff)
downloadfzf-3ec035c68bd48cdb619f1329c21eaf53d77abc81.tar.gz
Fix incorrect overflow detection when --wrap is set
Fix #4083
-rw-r--r--src/util/chars.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/chars.go b/src/util/chars.go
index a0ea9436..4b9cca01 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
}