mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Make '>' first jump to the beginning of the branch, and only then to the first commit
This commit is contained in:
parent
b0f6e68211
commit
5e712ed87d
5 changed files with 43 additions and 1 deletions
|
@ -138,7 +138,9 @@ func (self *ListController) HandleGotoTop() error {
|
|||
}
|
||||
|
||||
func (self *ListController) HandleGotoBottom() error {
|
||||
return self.handleLineChange(self.context.GetList().Len())
|
||||
bottomIdx := self.context.IndexForGotoBottom()
|
||||
change := bottomIdx - self.context.GetList().GetSelectedLineIdx()
|
||||
return self.handleLineChange(change)
|
||||
}
|
||||
|
||||
func (self *ListController) HandleToggleRangeSelect() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue