Commit Graph

4 Commits

Author SHA1 Message Date
fe3beeac29 Attempt to avoid timing issue which sometimes causes test to fail 2014-08-29 22:46:41 +01:00
ef0f25591c Set $window var based on currently active window
Previously $window was only set by the new_window() helper when it was
passed a name argument. This caused weird behavior cause if it was
called without a name it would simply attempt to recreate the same
window and fail. That was until @blueyed's fix in 2249cf8.

However, the $window var still wasn't being set correctly, leaving
split_v(), split_h() and other helpers to operate on the wrong
window. This is no longer an issue as $window is always set to the index
of the currently active window at the end of new_window() and
select_window().
2014-08-29 22:29:03 +01:00
77ccb5d532 Clean up test a bit 2014-07-21 16:13:16 +01:00
d8b8dff61f Add tests for new_window layout helper 2014-06-04 00:36:33 +01:00