Skip to content

Commit

Permalink
Fixed a mistake in calculating the length of the wrapping line.
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Oct 3, 2020
1 parent e4bc2e3 commit 79bac6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oviewer/oviewer.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ func (root *Root) bottomLineNum(num int) (int, int) {
num--
continue
}
branch = (len(lc) / (root.vWidth - root.startX))
branch = ((len(lc) - 1) / (root.vWidth - root.startX))
if y-branch <= 0 {
branch = branch - y
break
Expand Down

0 comments on commit 79bac6d

Please sign in to comment.