nelsam / vidar

vidar is a highly experimental Go editor, written in Go, using gxui
The Unlicense
50 stars 7 forks source link

gocode: fix off-by-one error (<= instead of <) #184

Closed nelsam closed 4 years ago

nelsam commented 4 years ago

When deciding whether or not we can apply a suggestion, we used < when we should have been using <=. This meant that suggestions could only be completed when at least one character had already been typed of the resulting word.

Type

Tests

I have tested locally against:

I have included automated tests: