Skip to content

Commit

Permalink
Implement continuous evaluation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed Jun 9, 2018
1 parent 3fb2cca commit 6f59a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func Move(g *gocui.Gui, v *gocui.View, direction int) error {

// Quit application if all items are resolved
if originalCur == cur && conflicts[cur].Choice != 0 {
globalQuit(g)
globalQuit(g, gocui.ErrQuit)
}

Select(g, conflicts[cur], false)
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ var (

// globalQuit is invoked when the user quits the contact and or
// when all conflicts have been resolved
func globalQuit(g *gocui.Gui) {
func globalQuit(g *gocui.Gui, err error) {
g.Update(func(g *gocui.Gui) error {
return gocui.ErrQuit
return err
})
}

Expand Down

0 comments on commit 6f59a29

Please sign in to comment.