]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/micro.go
Small optimization
[micro.git] / cmd / micro / micro.go
index cef6c976f84711490fe5a271a2fac9189b35ef44..a05761fbb74de27743bd14480af47949985f1084 100644 (file)
@@ -6,11 +6,11 @@ import (
        "io/ioutil"
        "os"
 
-       "github.com/gdamore/tcell"
-       "github.com/gdamore/tcell/encoding"
        "github.com/go-errors/errors"
        "github.com/mattn/go-isatty"
        "github.com/mitchellh/go-homedir"
+       "github.com/zyedidia/tcell"
+       "github.com/zyedidia/tcell/encoding"
 )
 
 const (
@@ -185,6 +185,8 @@ func main() {
        InitBindings()
        // Load the syntax files, including the colorscheme
        LoadSyntaxFiles()
+       // Load the help files
+       LoadHelp()
 
        buf := NewBuffer(string(input), filename)
 
@@ -242,7 +244,7 @@ func main() {
                                        }
                                case tcell.KeyCtrlG:
                                        if !helpOpen {
-                                               helpBuffer := NewBuffer(helpTxt, "")
+                                               helpBuffer := NewBuffer(helpTxt, "help.md")
                                                helpBuffer.name = "Help"
                                                helpOpen = true
                                                view.OpenBuffer(helpBuffer)