diff --git a/gui/buffer.go b/gui/buffer.go index 377c6f7..e8dedc0 100644 --- a/gui/buffer.go +++ b/gui/buffer.go @@ -15,7 +15,7 @@ import ( "github.com/felixangell/fuzzysearch/fuzzy" "github.com/felixangell/phi/cfg" "github.com/felixangell/phi/lex" - "github.com/felixangell/piecetable" + "github.com/felixangell/phi/piecetable" "github.com/felixangell/strife" "github.com/sqweek/dialog" "github.com/veandco/go-sdl2/sdl" diff --git a/gui/shortcuts.go b/gui/shortcuts.go index d1f3075..b47578b 100644 --- a/gui/shortcuts.go +++ b/gui/shortcuts.go @@ -115,7 +115,7 @@ func Save(v *View, commands []string) bool { filePath = genFileName(dir, "", ext) } - err := ioutil.WriteFile(filePath, buffer.Bytes(), 0775) + err := ioutil.WriteFile(filePath, buffer.Bytes(), 0644) if err != nil { log.Println(err.Error()) } diff --git a/piecetable b/piecetable new file mode 160000 index 0000000..4446bac --- /dev/null +++ b/piecetable @@ -0,0 +1 @@ +Subproject commit 4446bac0ef28e0391057ecb181f9eaf823a2b21e