Skip to content

Commit

Permalink
Also chmod -x markdown and PKGBUILD files when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Sep 6, 2022
1 parent 986208b commit 939561f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ func (e *Editor) Save(c *vt100.Canvas, tty *vt100.TTY) error {
// Call Chmod, but ignore errors (since this is just a bonus and not critical)
os.Chmod(e.filename, fileMode)
e.syntaxHighlight = true
} else if e.mode == mode.Make {
} else if e.mode == mode.Make || e.mode == mode.Markdown || filepath.Base(e.filename) == "PKGBUILD" {
fileMode = 0644
os.Chmod(e.filename, fileMode)
}
Expand Down

0 comments on commit 939561f

Please sign in to comment.