Add support for making buffer local options in settings.json

This commit is contained in:
Zachary Yedidia
2016-08-25 20:15:58 -04:00
parent e634b4e180
commit b4e470b6e2
5 changed files with 97 additions and 10 deletions

View File

@@ -93,6 +93,8 @@ func NewBuffer(txt []byte, path string) *Buffer {
buf: b,
}
InitLocalSettings(b)
if b.Settings["savecursor"].(bool) || b.Settings["saveundo"].(bool) {
// If either savecursor or saveundo is turned on, we need to load the serialized information
// from ~/.config/micro/buffers