diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-13 22:30:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 22:30:05 +0900 |
commit | 28bfa3ac8124d3453cd539db26da4f4703e783df (patch) | |
tree | dd4461af8343a7d5c9fc13cc51cd0fd5edd0285e /src/console/reducers | |
parent | 37840c2abb02948d36cdcfaab9063f3ea67fdb6b (diff) | |
parent | 803e6ea7af60107182356b5fda8e3c2ddfacaefa (diff) |
Merge pull request #431 from ueokande/command-completions
Command completions
Diffstat (limited to 'src/console/reducers')
-rw-r--r-- | src/console/reducers/index.js | 3 |
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]; } |