term-cursor.el
term-cursor.el copied to clipboard
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.
(I do not know why or if it still needs to be part of this hook, but I think it is the right thing to do in any case to support arbitrary hooks run with arguments).