Remove local settings

This commit is contained in:
Zachary Yedidia
2019-08-03 17:12:23 -07:00
parent 763e635fea
commit 9eed8bc247
10 changed files with 33 additions and 77 deletions

View File

@@ -3,7 +3,6 @@ package action
import (
"errors"
"fmt"
"log"
"os"
"path/filepath"
"regexp"
@@ -271,9 +270,7 @@ func ReloadConfig() {
screen.TermMessage(err)
}
log.Println("RELOAD CONFIG", len(buffer.OpenBuffers))
for _, b := range buffer.OpenBuffers {
log.Println("UPDATE RULES")
b.UpdateRules()
}
}
@@ -450,7 +447,7 @@ func (h *BufPane) ResetCmd(args []string) {
option := args[0]
defaultGlobals := config.DefaultGlobalSettings()
defaultLocals := config.DefaultLocalSettings()
defaultLocals := config.DefaultCommonSettings()
if _, ok := defaultGlobals[option]; ok {
SetGlobalOptionNative(option, defaultGlobals[option])