From c9a7aef4f6dde1408e037945c8f5a50a6dae42a5 Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Wed, 28 Dec 2022 22:01:36 +0600 Subject: [PATCH] Don't error while handling the sequence '\e[>c' * eat.el (eat--t-send-device-attrs): Accept '((nil))' as the value of the parameter PARAMS, but don't accept 'nil'. --- eat.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eat.el b/eat.el index 280f9e1..193030e 100644 --- a/eat.el +++ b/eat.el @@ -2455,14 +2455,13 @@ the format \"file://HOST/CWD/\"; HOST can be empty." PARAMS is the parameter list and FORMAT is the format of parameters in output." - (setq params (or params '((0)))) (pcase-exhaustive format ('nil - (when (= (caar params) 0) + (when (= (or (caar params) 1) 0) (funcall (eat--t-term-input-fn eat--t-term) eat--t-term "\e[?1;2c"))) (?> - (when (= (caar params) 0) + (when (= (or (caar params) 1) 0) (funcall (eat--t-term-input-fn eat--t-term) eat--t-term "\e[>0;242;0c")))))