added: *filename as a color sequence to match against (#747)

This commit is contained in:
Lucas Burns authored and GitHub committed 2022-02-05 00:01:08 +03:00
1 parent 761aa23483
commit 895e22a1b5
1 file changed
+4
+4
View File
@@ -276,6 +276,10 @@ func (sm styleMap) get(f *file) tcell.Style {
return val
}
if val, ok := sm["*"+f.Name()]; ok {
return val
}
if val, ok := sm[filepath.Base(f.Name())+".*"]; ok {
return val
}