There was an error while loading. Please reload this page.
1 parent 0b841ee commit d2a3784Copy full SHA for d2a3784
1 file changed
cmd/chroma/main.go
@@ -267,7 +267,8 @@ func main() {
267
}
268
269
func selectStyle() (*chroma.Style, error) {
270
- if style := styles.Get(cli.Style); style != styles.Fallback {
+ style, ok := styles.Registry[cli.Style]
271
+ if ok {
272
return style, nil
273
274
r, err := os.Open(cli.Style)
@@ -433,7 +434,7 @@ func dumpXMLLexerDefinitions(dir string) error {
433
434
fmt.Fprintf(os.Stderr, "warning: %s already exists\n", filename)
435
continue
436
- err = os.WriteFile(filename, data, 0o600)
437
+ err = os.WriteFile(filename, data, 0600)
438
if err != nil {
439
return err
440
0 commit comments