summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-03 05:41:16 +0300
committerThanos Apollo <[email protected]>2023-10-03 05:41:16 +0300
commite09de952d4428e0e8859c6a0f5e25e859e241f91 (patch)
treeb3eeaf0f5f07487934b39c501234d6bf700506eb
parentceaa24bd1f81c2b16dc88624542b048650aa1b8c (diff)
yeetube-buffer-create: Set delete-active-region to nil
This is done to follow instructions of delete-backward-char documentation. Pointed it out by Protesilaos Stavrou (Prot)
-rw-r--r--yeetube-buffer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/yeetube-buffer.el b/yeetube-buffer.el
index ad31cb3..fcb6ba9 100644
--- a/yeetube-buffer.el
+++ b/yeetube-buffer.el
@@ -197,7 +197,8 @@ Emojis cause formatting issues, this should be off by default."
"nil"))
(yeetube-buffer--format-channel channel-name)
"\n")))
- (backward-delete-char 1) ;; Delete extra line
+ (let ((delete-active-region nil))
+ (backward-delete-char 1 nil))
(goto-char (point-min))))
(provide 'yeetube-buffer)