mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 15:14:59 +08:00

With the previous logic, autocompletes were being opened mid-word, which was annoying and didn't properly work – selecting an option would generate an invalid format, mixing existing with new. This PR makes a simple change: only ever trigger an autocomplete on word ends, and close them when arrow-navigating out of the word-end boundary. ref /t/-/143169