Skip to content

Commit

Permalink
Seperate layout code
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed Dec 29, 2017
1 parent 300358a commit b782e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func layout(g *gocui.Gui) error {
v.Title = "Conflicts"
}

if v, err := g.SetView("input prompt", 1, viewHeight, 15, viewHeight+inputHeight); err != nil {
if v, err := g.SetView("input prompt", 0, viewHeight, 15, viewHeight+inputHeight); err != nil {
if err != gocui.ErrUnknownView {
return err
}
Expand All @@ -41,7 +41,7 @@ func layout(g *gocui.Gui) error {
v.MoveCursor(11, 0, true)
}

if v, err := g.SetView("input", 12, viewHeight, maxX, viewHeight+inputHeight); err != nil {
if v, err := g.SetView("input", 11, viewHeight, maxX, viewHeight+inputHeight); err != nil {
if err != gocui.ErrUnknownView {
return err
}
Expand Down

0 comments on commit b782e6c

Please sign in to comment.