summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-03 14:59:01 +0300
committerThanos Apollo <[email protected]>2023-07-03 14:59:01 +0300
commit5098b6d75fdd802aa3feaeec3a29e47cb6e7a9ad (patch)
treeaf64b44ddffb6709e32b5c0d187e84625b29fc30
parent363d40ceb4f91cfba0fdcaa273cf63f556d4aeb2 (diff)
fix updates
-rw-r--r--yeetube.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/yeetube.el b/yeetube.el
index d9ce3fb..f9a5bef 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -251,8 +251,12 @@ OPERATION & WHERE are required to work with 'add-variable-watcher."
(kill-visual-line)
(insert
(format "%s %s" to-change new-value))
+ (goto-char (point-min))
+ (search-forward yeetube-results-prefix)
(setq-local buffer-read-only t)
- (switch-to-buffer (other-buffer)))))
+ (unless (string-equal (buffer-name) "*Yeetube Search*")
+ (switch-to-buffer (other-buffer))))))
+
;; Variable to watch
(add-variable-watcher 'yeetube-download-directory #'yeetube-update-info)