Use upstream updated zyedidia tcell

This commit is contained in:
Zachary Yedidia
2019-12-31 20:15:45 -05:00
parent 6632ab0a77
commit 0301e3539e
20 changed files with 23 additions and 32 deletions

View File

@@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
)
// Micro's default style

View File

@@ -4,7 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
)
func TestSimpleStringToStyle(t *testing.T) {

View File

@@ -246,13 +246,11 @@ func PluginListRuntimeFiles(fileType RTFiletype) []string {
// PluginAddRuntimeFile adds a file to the runtime files for a plugin
func PluginAddRuntimeFile(plugin string, filetype RTFiletype, filePath string) error {
log.Println("PLUGIN ADD:", plugin)
pl := FindPlugin(plugin)
if pl == nil {
return errors.New("Plugin " + plugin + " does not exist")
}
pldir := pl.DirName
log.Println("DIRNAME:", pldir)
fullpath := filepath.Join(ConfigDir, "plug", pldir, filePath)
if _, err := os.Stat(fullpath); err == nil {
AddRuntimeFile(filetype, realFile(fullpath))