Merge branch 'openlink' of sloum/bombadillo into master

- Allows users to launch bombadillo with a url as a second param
This commit is contained in:
sloum 2019-05-08 22:24:31 -04:00 committed by Gitea
commit 2e3913f4db
1 changed files with 12 additions and 11 deletions

23
main.go
View File

@ -429,19 +429,20 @@ func main() {
}
mainWindow := screen.Windows[0]
firstLoad := true
if len(os.Args) > 1 {
err = goToURL(os.Args[1])
} else {
err = goHome()
}
if err != nil {
displayError(err)
} else {
updateMainContent()
}
for {
if firstLoad {
firstLoad = false
err := goHome()
if err == nil {
updateMainContent()
}
continue
}
c := cui.Getch()
switch c {
case 'j', 'J':