mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
Create ~/.micro if it does not exist
This commit is contained in:
@@ -52,6 +52,7 @@ func LoadColorscheme(colorschemeName, dir string) {
|
||||
data, err := Asset("runtime/colorschemes/" + name + ".micro")
|
||||
if err != nil {
|
||||
TermMessage("Unable to load pre-installed colorscheme " + name)
|
||||
continue
|
||||
}
|
||||
colorscheme = ParseColorscheme(string(data))
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ func InitSettings() {
|
||||
if err != nil {
|
||||
TermMessage("Error writing settings.json file: " + err.Error())
|
||||
}
|
||||
|
||||
os.Mkdir(home+"/.micro", 755)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user