Fixed autocomplete showing in comments

This commit is contained in:
bigguy345 committed 2026-03-13 04:56:07 +02:00
1 parent 3b7798338f
commit 07594f574b
1 file changed
+1 -1
@@ -165,7 +165,7 @@ public class AutocompleteManager {
*/
public void onCharTyped(char c, String text, int cursorPosition) {
// Check if we should close autocomplete
if (CLOSE_CHARS.indexOf(c) >= 0) {
if (CLOSE_CHARS.indexOf(c) >= 0 || document.isExcludedInclusive(cursorPosition)) {
dismiss();
return;
}