Skip to content

Commit b735110

Browse files
committed
Win32 check for AStyle formatter...
1 parent d4b93bd commit b735110

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

External/Plugins/CodeFormatter/PluginMain.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.ComponentModel;
43
using System.IO;
54
using System.Text.RegularExpressions;
@@ -402,7 +401,7 @@ public Int32 DocumentType
402401
else if (ext == ".mxml") return TYPE_MXML;
403402
}
404403
else if (lang == "xml") return TYPE_XML;
405-
else if (document.SciControl.Lexer == 3) return TYPE_CPP;
404+
else if (document.SciControl.Lexer == 3 && Win32.ShouldUseWin32()) return TYPE_CPP;
406405
return TYPE_UNKNOWN;
407406
}
408407
}

0 commit comments

Comments
 (0)