aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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..043689c 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];
}