aboutsummaryrefslogtreecommitdiff
path: root/src/console/reducers
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/reducers')
-rw-r--r--src/console/reducers/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/console/reducers/index.js b/src/console/reducers/index.js
index 71b0776..7dcad17 100644
--- a/src/console/reducers/index.js
+++ b/src/console/reducers/index.js
@@ -11,6 +11,9 @@ const defaultState = {
};
const nextSelection = (state) => {
+ if (state.completions.length === 0) {
+ return [-1, -1];
+ }
if (state.groupSelection < 0) {
return [0, 0];
}