diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el index 7489ad53645..984c1bf9916 100644 --- a/test/lisp/progmodes/eglot-tests.el +++ b/test/lisp/progmodes/eglot-tests.el @@ -647,7 +647,7 @@ int main() { (completion-at-point) (message (buffer-string)) (should (looking-back "fprintf(?")) - (unless (= (char-before) ?\()) (insert "()") (backward-char) + (unless (= (char-before) ?\() (insert "()") (backward-char)) (eglot--signal-textDocument/didChange) (should (string-match "^fprintf" (eglot--tests-force-full-eldoc))))))