mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-26 10:50:23 +00:00
parent
5e82fc4673
commit
cc6189b7ce
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ var preInstalledColors = []string{"default", "simple", "solarized", "solarized-t
|
|||
|
||||
// ColorschemeExists checks if a given colorscheme exists
|
||||
func ColorschemeExists(colorschemeName string) bool {
|
||||
files, _ := ioutil.ReadDir(configDir)
|
||||
files, _ := ioutil.ReadDir(configDir + "/colorschemes")
|
||||
for _, f := range files {
|
||||
if f.Name() == colorschemeName+".micro" {
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in a new issue