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

[gocui] Fix FocusPoint when Wrap is true

This commit is contained in:
Stefan Haller
2024-12-08 13:10:25 +01:00
parent 6705428a8d
commit cb2d2a538f

@ -326,7 +326,11 @@ func (v *View) IsSearching() bool {
}
func (v *View) FocusPoint(cx int, cy int) {
lineCount := len(v.lines)
v.writeMutex.Lock()
defer v.writeMutex.Unlock()
v.refreshViewLinesIfNeeded()
lineCount := len(v.viewLines)
if cy < 0 || cy > lineCount {
return
}