Skip to content

Commit b1d24c3

Browse files
committed
Fixed bug in assigning special settings for certain UTIs.
1 parent c22836f commit b1d24c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SyntaxHighlightRenderXPC/SCSHBaseXPCService.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ class SCSHBaseXPCService: NSObject {
341341
try? "No settings found for the file UTI (\(u.UTI)) but a customized plist file exists.".appendLine(to: logFile)
342342
plain = nil
343343
attributes = nil
344+
} else if let u = u, let _ = settings.utiSettings[u.UTI] {
345+
uti = u.UTI
346+
plain = nil
347+
attributes = nil
344348
} else {
345349
try? "No settings found for the file UTI (\(u?.UTI ?? ""))".appendLine(to: logFile)
346350
attributes = MagicAttributes(url: url, logFile: logFile)

0 commit comments

Comments
 (0)