From b942c22d3a6855ff9c2dd2b358c46c76c78be99c Mon Sep 17 00:00:00 2001 From: Felix Angell Date: Tue, 19 Jun 2018 22:09:53 +0100 Subject: [PATCH] moved piectable into phi; file now saves w 0644 --- gui/buffer.go | 2 +- gui/shortcuts.go | 2 +- piecetable | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 160000 piecetable 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