1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-27 00:51:18 +02:00

Fix rendering regression introduced in #3839

This commit is contained in:
Stefan Haller
2024-08-24 11:46:37 +02:00
parent 8e71df3e53
commit 5380fe2483
4 changed files with 7 additions and 4 deletions

View File

@ -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)
}