Fix: runner path issue, handle tmux not running #15

Merged
merged 2 commits into from Apr 15, 2012

Conversation

Projects
None yet
2 participants
Contributor

joshingly commented Apr 15, 2012

Runner path issue

If you set the default-path option for tmux, new panes won't be in the correct directory. To fix this, you cd to vim's working directory when a new pane is created.

Handle not being in a tmux session

If you run a command outside of tmux (maybe by accident) it explodes with output. To fix, you check the $TMUX environment variable and throw an exception if you aren't in a tmux session.

Owner

benmills commented Apr 15, 2012

This looks great, thanks for the pull request! Running cd before any command in the runner pane complements the recent addition of using an existing tmux pane by ensuring that pane has the correct working directory.

benmills merged commit 252693e into benmills:master Apr 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment