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.

CommentFileSizeAuthor
#2 trim_long_search_words-2818623-2.patch917 bytesBarisW

Comments

BarisW created an issue. See original summary.

BarisW’s picture

Status: Active » Needs review
StatusFileSize
new917 bytes

  • Marty2081 committed c9b8aa9 on 7.x-1.x authored by BarisW
    Issue #2818623 by BarisW: Trim long search words to the maximum key...
marty2081’s picture

Status: Needs review » Fixed

Good thought and nice improvement to the plugin. The extra load on the server due to extra requests is probably negligible. Comitted.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.