Fix error on no completion items

This commit is contained in:
Shin'ya Ueoka 2018-07-13 21:59:23 +09:00
parent f555e1348c
commit 8db779388f

View file

@ -11,6 +11,9 @@ const defaultState = {
};
const nextSelection = (state) => {
if (state.completions.length === 0) {
return [-1, -1];
};
if (state.groupSelection < 0) {
return [0, 0];
}