From fa2f86fe3196c0cbba3593232a006e9cb0b306d4 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 17 Jan 2022 15:19:35 +1100 Subject: [PATCH 1/2] update funding.yml --- .github/FUNDING.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index e82faa66..ed009fc5 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,4 +1,4 @@ # These are supported funding model platforms -ko_fi: jesseduffield -custom: ['https://donorbox.org/lazydocker'] +github: [jesseduffield] +custom: ['https://donorbox.org/lazygit'] From c5d90fd09dec71ba4369ffd0adc4516cdfeabf90 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 17 Jan 2022 22:11:36 +1100 Subject: [PATCH 2/2] fix clicking on item after scrolling --- pkg/gui/view_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index d7a327d4..03eef629 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -370,7 +370,7 @@ func (gui *Gui) handleClick(v *gocui.View, itemCount int, selectedLine *int, han _, cy := v.Cursor() _, oy := v.Origin() - newSelectedLine := cy - oy + newSelectedLine := cy + oy if newSelectedLine < 0 { newSelectedLine = 0