mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 01:44:27 +00:00
Prevented auto pair insertion of '', "", [], () blocks in excluded ranges (comments,strings)
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user