mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
paging keybindings for line by line panel
support searching in line by line panel move mutexes into their own struct add line by line panel mutex apply LBL panel mutex bump gocui to prevent crashing when search item count decreases
This commit is contained in:
@ -433,3 +433,15 @@ func (gui *Gui) handlePrevTab(g *gocui.Gui, v *gocui.View) error {
|
||||
utils.ModuloWithWrap(v.TabIndex-1, len(v.Tabs)),
|
||||
)
|
||||
}
|
||||
|
||||
// this is the distance we will move the cursor when paging up or down in a view
|
||||
func (gui *Gui) pageDelta(view *gocui.View) int {
|
||||
_, height := view.Size()
|
||||
|
||||
delta := height - 1
|
||||
if delta == 0 {
|
||||
return 1
|
||||
}
|
||||
|
||||
return delta
|
||||
}
|
||||
|
Reference in New Issue
Block a user