projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7857601
)
Use absolute path when editing with editor
author
John Ku
<john.cmyk@gmail.com>
Mon, 14 Dec 2015 03:37:32 +0000
(19:37 -0800)
committer
Anthony Fok
<foka@debian.org>
Wed, 16 Dec 2015 07:00:05 +0000
(
00:00
-0700)
Fixes #1589
create/content.go
patch
|
blob
|
history
diff --git
a/create/content.go
b/create/content.go
index 98be0e8716aa993d9c4c0a7d659a06a7ddf32631..e56c5c95196d9e792a809dc9f95179b529eff3ec 100644
(file)
--- a/
create/content.go
+++ b/
create/content.go
@@
-115,7
+115,7
@@
func NewContent(kind, name string) (err error) {
if editor != "" {
jww.FEEDBACK.Printf("Editing %s in %s.\n", name, editor)
- cmd := exec.Command(editor,
path.Join(viper.GetString("contentDir"), name
))
+ cmd := exec.Command(editor,
helpers.AbsPathify(path.Join(viper.GetString("contentDir"), name)
))
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr