Skip to content

Commit

Permalink
Refactor globalQuit
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed May 31, 2018
1 parent 4821de0 commit 96ca3ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ func printLines(v *gocui.View, lines []string) {

func globalQuit(g *gocui.Gui) {
g.Update(func(g *gocui.Gui) error {
v, _ := g.View("")
return quit(g, v)
return gocui.ErrQuit
})
}

Expand Down

0 comments on commit 96ca3ec

Please sign in to comment.