The function that assigns sequences to candidates will try to work out how many characters are needed as ceil(log(#candidates)/log(#chars)) but if #candidates = 1, it’s logarithm is 0 and the function will later fail.
One fix would be to clamp this value with a lower bound of 1.
Another may be to use a different candidate-display function if there is a single candidate.
The function that assigns sequences to candidates will try to work out how many characters are needed as
ceil(log(#candidates)/log(#chars))
but if #candidates = 1, it’s logarithm is 0 and the function will later fail.One fix would be to clamp this value with a lower bound of 1.
Another may be to use a different candidate-display function if there is a single candidate.