Skip to content

Commit 7f86442

Browse files
authored
Merge pull request #13 from Deftu/main
Fix newlines being appended on non-MC vars
2 parents 90fcfa5 + 56334a4 commit 7f86442

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/org/polyfrost/intelliprocessor/editor/PreprocessorNewLineHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class PreprocessorNewLineHandler : EnterHandlerDelegateAdapter(), DumbAware {
9191

9292
private fun evaluateCondition(condition: String, currentVersion: Int): Boolean {
9393
if (!condition.startsWith("MC")) {
94-
return false
94+
return true // Non-MC conditions are always considered "active"
9595
}
9696

9797
val match = Regex("""MC\s*(==|!=|<=|>=|<|>)\s*(\S+)""").find(condition) ?: return false

0 commit comments

Comments
 (0)