Skip to content

Commit

Permalink
Merge pull request #62 from jesseduffield/fix-broken-rendering
Browse files Browse the repository at this point in the history
Fix a rendering regression introduced in #61
  • Loading branch information
stefanhaller authored Aug 24, 2024
2 parents 5083ac1 + 6bfac15 commit 8cce5f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions view.go
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,9 @@ func (v *View) LinesHeight() int {

// ViewLinesHeight is the count of view lines (i.e. lines including wrapping)
func (v *View) ViewLinesHeight() int {
v.writeMutex.Lock()
defer v.writeMutex.Unlock()

v.refreshViewLinesIfNeeded()
return len(v.viewLines)
}
Expand Down

0 comments on commit 8cce5f5

Please sign in to comment.