Skip to content

Commit

Permalink
Re-fix the doc.height set
Browse files Browse the repository at this point in the history
The doc.statusPos may not be updated.
  • Loading branch information
noborus committed Nov 2, 2024
1 parent 9e96327 commit b3b4a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oviewer/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ func (root *Root) followAll(ctx context.Context) {
root.mu.RLock()
for n, doc := range root.DocList {
doc.width = root.scr.vWidth - root.scr.startX
doc.height = doc.statusPos - doc.headerHeight
doc.height = root.scr.vHeight - (statusLine + doc.headerHeight)
if doc.latestNum != doc.BufEndNum() {
current = n
}
Expand Down

0 comments on commit b3b4a05

Please sign in to comment.