]> git.eshelyaron.com Git - emacs.git/commitdiff
Switch to xwidget webkit buffer even if a session already exists
authorPo Lu <luangruo@yahoo.com>
Thu, 11 Nov 2021 02:13:42 +0000 (10:13 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 11 Nov 2021 07:40:57 +0000 (15:40 +0800)
* lisp/xwidget.el (xwidget-webkit-goto-url): Make behavior
when there is an existing session consistent.

lisp/xwidget.el

index cc149cf1978305f81a9347f723dda614949bd898..19b95066b0fb22b5a60524458e0b5fd294f8a66d 100644 (file)
@@ -762,7 +762,8 @@ Return the buffer."
   "Goto URL with xwidget webkit."
   (if (xwidget-webkit-current-session)
       (progn
-        (xwidget-webkit-goto-uri (xwidget-webkit-current-session) url))
+        (xwidget-webkit-goto-uri (xwidget-webkit-current-session) url)
+        (switch-to-buffer (xwidget-buffer (xwidget-webkit-current-session))))
     (xwidget-webkit-new-session url)))
 
 (defun xwidget-webkit-back ()