Fuco1 / better-jump

Better ace-jump-mode
11 stars 3 forks source link

Extra letter needed when number of choices == number of letters #3

Closed glucas closed 6 months ago

glucas commented 9 years ago

When calling bjump-word-jump and the number of possible single letters happens to be equal to the number of possible jump targets, all the targets get labeled with the same letter (e.g. 'a').

Tweaking bjump-picker-single-letter to increment the num-choices here fixes it for me:

(floor (log num-selected (+ 1 num-choices)))
Fuco1 commented 6 months ago

You're right, I applied your fix. Thanks!