From 939561f9bb6272168ac6fb156b42f5d340d2083e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=2E=20R=C3=B8dseth?= Date: Tue, 6 Sep 2022 09:09:55 +0200 Subject: [PATCH] Also chmod -x markdown and PKGBUILD files when saving --- v2/editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/editor.go b/v2/editor.go index b244a9f6..00b10a29 100644 --- a/v2/editor.go +++ b/v2/editor.go @@ -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) }