branch: elpa/eat
commit c9a7aef4f6dde1408e037945c8f5a50a6dae42a5
Author: Akib Azmain Turja <[email protected]>
Commit: Akib Azmain Turja <[email protected]>
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")))))