]> git.eshelyaron.com Git - emacs.git/commitdiff
; Backport: Eglot: fix misplaced parenthesis in last commit to eglot-tests.el
authorJoão Távora <joaotavora@gmail.com>
Fri, 7 Apr 2023 17:52:06 +0000 (18:52 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 9 Apr 2023 13:36:08 +0000 (15:36 +0200)
* test/lisp/progmodes/eglot-tests.el
(eglot-test-eldoc-after-completions): Fix misplaced parenthesis.

(cherry picked from commit 3aedd5c920560fe6456a860a900be40a35e850d2)

test/lisp/progmodes/eglot-tests.el

index 7489ad53645f655c98eb7cffad490debef014250..984c1bf9916e683eec19e7b2da9e9a51f60287f1 100644 (file)
@@ -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))))))