aboutsummaryrefslogtreecommitdiff
path: root/src/console/reducers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-13 22:30:05 +0900
committerGitHub <noreply@github.com>2018-07-13 22:30:05 +0900
commit28bfa3ac8124d3453cd539db26da4f4703e783df (patch)
treedd4461af8343a7d5c9fc13cc51cd0fd5edd0285e /src/console/reducers
parent37840c2abb02948d36cdcfaab9063f3ea67fdb6b (diff)
parent803e6ea7af60107182356b5fda8e3c2ddfacaefa (diff)
Merge pull request #431 from ueokande/command-completions
Command completions
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];
}