summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2022-01-16 23:09:04 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2022-01-16 23:09:04 (GMT)
commit41dc0445cc2e6ec4385be734e38570012bf5109a (patch)
tree7a2274b61bee7bfc20f73064a5dd0d42dd10679c
parentc7e0ab0d4dc8103dfb6dfcdfe5b26382a0ca60a8 (diff)
downloaddotemacs-41dc0445cc2e6ec4385be734e38570012bf5109a.zip
dotemacs-41dc0445cc2e6ec4385be734e38570012bf5109a.tar.gz
dotemacs-41dc0445cc2e6ec4385be734e38570012bf5109a.tar.bz2
Remote control response bug fixes
-rw-r--r--lisp/kitty-remote-control.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/kitty-remote-control.el b/lisp/kitty-remote-control.el
index af58f96..80266d3 100644
--- a/lisp/kitty-remote-control.el
+++ b/lisp/kitty-remote-control.el
@@ -64,8 +64,7 @@
(xterm--query (kitty-rc--construct-command-string command payload min-version t)
(list (cons kitty-rc-command-prefix
(lambda ()
- (if-let* ((kitty-response (kitty-rc--remote-control-response))
- (response-json (json-parse-string kitty-response)))
+ (if-let* ((response-json (kitty-rc--remote-control-response)))
(funcall handler response-json)
(user-error "Kitty response failed")))))))
@@ -89,7 +88,7 @@
"Browser arguments for kitty-rc-browse-url")
(defun kitty-rc-browse-url (url &rest args)
"Browse URL by launching browser remotely"
- (kitty-rc-posted-command
+ (kitty-rc-launch-background
(apply #'vector
(flatten-list
(list kitty-rc-browser (browse-url-encode-url url) args)))))