Prevented auto pair insertion of '', "", [], () blocks in excluded ranges (comments,strings)

This commit is contained in:
bigguy345 committed 2026-01-26 19:19:58 +02:00
1 parent 83a54c10b8
commit ea8cc51eef
2 files changed
+39 -35

No files matched your search

@@ -442,9 +442,10 @@ public class ScriptDocument {
excludedRanges.addAll(merged);
}
public boolean isExcluded(int position) {
for (int[] range : excludedRanges) {
if (position >= range[0] && position < range[1]) {
if (position >= range[0] && position <= range[1]) {
return true;
}
}