From cb6f9b1ea16d7153150ee30acd493f434540b9b4 Mon Sep 17 00:00:00 2001
From: jao <jao@gnu.org>
Date: Thu, 1 Sep 2022 03:04:32 +0100
Subject: a couple of little tweaks

---
 init.el             | 2 +-
 lib/eos/jao-afio.el | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/init.el b/init.el
index 00dd82f..9a6cff2 100644
--- a/init.el
+++ b/init.el
@@ -654,7 +654,7 @@
 
 (use-package xclip
   :ensure t
-  :init (setq xclip-method (if jao-sway-enabled 'wl-copy 'xclip)))
+  :init (setq xclip-method (if jao-wayland-enabled 'wl-copy 'xclip)))
 
 (unless (display-graphic-p) (xclip-mode 1))
 
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index 25ef064..4000eca 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -78,7 +78,8 @@
 (declare-function jao-eww-session-load "jao-eww-session")
 
 (defun jao-afio--open-eww-session ()
-  (when (null (jao-eww-session-eww-buffers))
+  (if-let (b (jao-eww-session-eww-buffers))
+      (switch-to-buffer (car b))
     (jao-eww-session-load)))
 
 ;;;###autoload
-- 
cgit v1.2.3