Skip to content

Commit

Permalink
Fix pane dir
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Jul 11, 2018
1 parent 7cb2dc9 commit 562ffef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions __examples__/single-window.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ name="window-one"
dir="~/dev"

[[windows]]
dir="~/dev/bloom"
dir="~/dev/project"

[[windows.panes]]
[[windows.panes]]
dir="~/dev/bloom/dashboard"
dir="~/dev/project/src"

[[windows]]
8 changes: 3 additions & 5 deletions builder/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,9 @@ func (w *window) renderPane() error {
}

for _, pane := range w.Panes {
if pane.Dir != w.Dir {
err := tmux.SendKeys(pane.Target, "cd "+pane.Dir)
if err != nil {
return err
}
err := tmux.SendKeys(pane.Target, "cd "+pane.Dir)
if err != nil {
return err
}
}

Expand Down

0 comments on commit 562ffef

Please sign in to comment.