1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-05 00:59:19 +02:00

bump gocui (this better work or so hope me god I'm switching back to go dep)

jks I'm that that close to the edge... but I am getting there haha
This commit is contained in:
Jesse Duffield
2019-11-10 16:40:07 +11:00
parent df72eee201
commit 5c518eda0a
34 changed files with 7847 additions and 61 deletions

View File

@ -650,3 +650,14 @@ func (v *View) GetClickedTabIndex(x int) int {
return 0
}
func (v *View) SelectedLineIdx() int {
_, seletedLineIdx := v.SelectedPoint()
return seletedLineIdx
}
func (v *View) SelectedPoint() (int, int) {
cx, cy := v.Cursor()
ox, oy := v.Origin()
return cx + ox, cy + oy
}