When you paste / type long words, the FAC module checks for the maximum key length. Currently, it only performs a search when the number of characters of the entered word is between the min length and max length. So when a long word is entered, the search is not performed. This can be confusing if you type an error in the beginning of your sentence.
Steps to reproduce:
- Set the max key length to 5
- Type 'psspord'
- Go to the 2nd position with your cursor and add an 'a' to make it 'password'.
Because password is longer than 5 characters, the search is ignored.
My suggestion would be to always trim the search to the maximum amount of characters and then perform the search.
Patch follows.
Comments
Comment #2
BarisW commentedComment #4
marty2081 commentedGood thought and nice improvement to the plugin. The extra load on the server due to extra requests is probably negligible. Comitted.