From 6e8673ceac08b424445ca6b1292491abe71e4efa Mon Sep 17 00:00:00 2001 From: fnussbaum Date: Tue, 17 Sep 2024 11:45:52 +0200 Subject: [PATCH] Fix `term-cursor--immediate` with optional arguments By default `term-cursor--immediate` is called as part of the `lsp-ui-doc-frame-hook`, which is run with two arguments, and will therefore throw an error each time time, see https://github.com/syl20bnr/spacemacs/issues/15667. --- term-cursor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term-cursor.el b/term-cursor.el index c3334d3..da9225f 100644 --- a/term-cursor.el +++ b/term-cursor.el @@ -106,7 +106,7 @@ It can sometimes be a `cons' from which we only want the first element (cf `curs (send-string-to-terminal (term-cursor--determine-esc cursor blink)))) -(defun term-cursor--immediate () +(defun term-cursor--immediate (&rest _) "Send an escape code without waiting for `term-cursor-watcher'." (term-cursor--eval cursor-type blink-cursor-mode))