Skip to content

Commit

Permalink
Search nextPane in same tab
Browse files Browse the repository at this point in the history
Fix #17
  • Loading branch information
chabou committed Sep 10, 2017
1 parent d7aea3b commit d030c87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ const onMoveToDirectionPane = dispatch => (type, doSwitch) => {
const focusPointDimension = isHorzontal ? 'h' : 'w';
const invert = (type === UI_MOVE_LEFT_PANE || type === UI_MOVE_UP_PANE);

const nextTermGroup = Object.keys(termGroups.termGroups)
const rootGroupUid = termGroups.activeRootGroup;
const sortedSessionGroups = findChildSessions(termGroups.termGroups, rootGroupUid);
const nextTermGroup = sortedSessionGroups
.map(uid => termGroups.termGroups[uid])
.find(candidate => {
if (!candidate.sessionUid) {
Expand Down

0 comments on commit d030c87

Please sign in to comment.