Add support for other encodings

This commit is contained in:
Zachary Yedidia
2016-04-18 17:10:47 -04:00
parent 0a8aca2abe
commit aa129c1ddf

View File

@@ -3,6 +3,7 @@ package main
import (
"fmt"
"github.com/gdamore/tcell"
"github.com/gdamore/tcell/encoding"
"github.com/go-errors/errors"
"github.com/mattn/go-isatty"
"github.com/mitchellh/go-homedir"
@@ -106,6 +107,8 @@ func main() {
os.Exit(1)
}
encoding.Register()
// Find the user's configuration directory (probably $XDG_CONFIG_HOME/micro)
InitConfigDir()
// Load the user's settings