Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sops.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Author: Jonathan Carroll Otsuka <[email protected]>
;; Keywords: convenience, programming
;; Version: 0.1.6
;; Version: 0.1.7
;; Package-Requires: ((emacs "28.1"))
;; Homepage: http://github.com/djgoku/sops
;; Keywords: convenience files tools sops encrypt decrypt
Expand Down Expand Up @@ -131,9 +131,11 @@
(let ((encrypted-buffer-contents (buffer-string))
(original-file-name sops--original-buffer-file-name))
(switch-to-buffer sops--original-buffer-name)
(read-only-mode -1)
(erase-buffer)
(insert encrypted-buffer-contents)
(save-buffer)
(read-only-mode)
(sops--clean-up-buffers original-file-name))
(sops--clean-up-buffers (buffer-file-name))))
(message "no changes were made to file, closing buffer")
Expand Down