summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-06 18:20:43 +0300
committerThanos Apollo <[email protected]>2023-10-06 18:20:43 +0300
commit62166f4e9ef8c98b99c070edaef9224fb95ed0ed (patch)
tree1f5f630fb1a262d90e2e4ebf835f599635f0a8e1
parent5ce1e994ffd75e96c65373530d61255045b996b5 (diff)
[fix] yeetube-buffer: Set buffer-read-only t after creation
-rw-r--r--yeetube-buffer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/yeetube-buffer.el b/yeetube-buffer.el
index fed3c66..565d192 100644
--- a/yeetube-buffer.el
+++ b/yeetube-buffer.el
@@ -202,7 +202,8 @@ Emojis cause formatting issues, this should be off by default."
(cl-loop for result in (reverse content)
do (yeetube-buffer-insert-content result))
(delete-char -1)
- (goto-char (point-min))))
+ (goto-char (point-min))
+ (setf buffer-read-only t)))
(provide 'yeetube-buffer)
;;; yeetube-buffer.el ends here