mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
[gocui] Fix FocusPoint when Wrap is true
This commit is contained in:
parent
326e7e8716
commit
153d0558b4
1 changed files with 5 additions and 1 deletions
6
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
6
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue