mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-01 11:36:47 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b264806ef | ||
|
|
7add598235 |
+3
-3
@@ -31,9 +31,9 @@ script:
|
||||
- mv lazygit_windows_amd64.exe lazygit_windows_amd64_${TRAVIS_TAG}.exe
|
||||
- mv lazygit_darwin_amd64 lazygit_darwin_amd64_${TRAVIS_TAG}
|
||||
- mv lazygit_linux_amd64 lazygit_linux_amd64_${TRAVIS_TAG}
|
||||
- chmod +x ./lazygit_windows_amd64_${TRAVIS_TAG}.exe
|
||||
- chmod +x ./lazygit_darwin_amd64_${TRAVIS_TAG}
|
||||
- chmod +x ./lazygit_linux_amd64_${TRAVIS_TAG}
|
||||
- chmod a+x ./lazygit_windows_amd64_${TRAVIS_TAG}.exe
|
||||
- chmod a+x ./lazygit_darwin_amd64_${TRAVIS_TAG}
|
||||
- chmod a+x ./lazygit_linux_amd64_${TRAVIS_TAG}
|
||||
- ls
|
||||
- ls */*
|
||||
deploy:
|
||||
|
||||
@@ -16,6 +16,9 @@ import (
|
||||
"github.com/jesseduffield/gocui"
|
||||
)
|
||||
|
||||
// Rev is the release version
|
||||
var Rev string
|
||||
|
||||
// OverlappingEdges determines if panel edges overlap
|
||||
var OverlappingEdges = false
|
||||
|
||||
@@ -225,14 +228,28 @@ func layout(g *gocui.Gui) error {
|
||||
v.FgColor = gocui.ColorWhite
|
||||
}
|
||||
|
||||
if v, err := g.SetView("options", -1, optionsTop, width, optionsTop+2, 0); err != nil {
|
||||
version := Rev
|
||||
if version == "" {
|
||||
version = "unversioned"
|
||||
}
|
||||
|
||||
if v, err := g.SetView("options", -1, optionsTop, width-len(version)-2, optionsTop+2, 0); err != nil {
|
||||
if err != gocui.ErrUnknownView {
|
||||
return err
|
||||
}
|
||||
v.BgColor = gocui.ColorDefault
|
||||
v.FgColor = gocui.ColorBlue
|
||||
v.Frame = false
|
||||
v.Title = "Options"
|
||||
}
|
||||
|
||||
if v, err := g.SetView("version", width-len(version)-1, optionsTop, width, optionsTop+2, 0); err != nil {
|
||||
if err != gocui.ErrUnknownView {
|
||||
return err
|
||||
}
|
||||
v.BgColor = gocui.ColorDefault
|
||||
v.FgColor = gocui.ColorGreen
|
||||
v.Frame = false
|
||||
renderString(g, "version", version)
|
||||
|
||||
// these are only called once
|
||||
handleFileSelect(g, filesView)
|
||||
|
||||
Reference in New Issue
Block a user