summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-09-28 01:45:04 +0300
committerThanos Apollo <[email protected]>2023-09-28 01:45:04 +0300
commit6d2b0b8b78b222beaf717e10e8b3887eff6b967f (patch)
treec6a7f05aa7a626a63b04866457129d3e3413bb5e
parent8667485c1c808871a05cb6fb9e1efb6abf52730d (diff)
yeetube-buffer: Fix yeetube-mode issues
-rw-r--r--yeetube-buffer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/yeetube-buffer.el b/yeetube-buffer.el
index fac444c..ef683cc 100644
--- a/yeetube-buffer.el
+++ b/yeetube-buffer.el
@@ -106,7 +106,8 @@
"Create *yeetube* buffer with BUFFER-MODE for QUERY, displaying CONTENT."
(with-current-buffer
(switch-to-buffer (get-buffer-create "*yeetube*"))
- (funcall buffer-mode)
+ (unless buffer-mode
+ (funcall buffer-mode))
(erase-buffer)
(pop content) ;; Remove filtes
(yeetube-buffer--format-header query)