tabcomplete icon indicating copy to clipboard operation
tabcomplete copied to clipboard

Case of entered text is not updated if "select" is used as hint

Open tmrk opened this issue 9 years ago • 0 comments

If the option hint is set to "select" then the case of the entered characters remains the same regardless of the case of the word it is being matched to.

My suggestion for a fix is to change this in line 144:

var text = options.hint == "select" ? value : [...]

To this:

var text = options.hint == "select" ? value.slice(0, -word.length) + word : [...]

tmrk avatar Jul 26 '16 18:07 tmrk