[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eat c9a7aef4f6 1/2: Don't error while handling the sequenc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eat c9a7aef4f6 1/2: Don't error while handling the sequence '\e[>c' |
Date: |
Wed, 28 Dec 2022 11:58:46 -0500 (EST) |
branch: elpa/eat
commit c9a7aef4f6dde1408e037945c8f5a50a6dae42a5
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
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 280f9e138d..193030e61e 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")))))