]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug introduced by previous fix
authorJoão Távora <joaotavora@gmail.com>
Tue, 4 Dec 2018 09:47:36 +0000 (09:47 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 4 Dec 2018 09:47:36 +0000 (09:47 +0000)
* eglot.el (eglot--CompletionParams): Don't use last-input-event.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/173

lisp/progmodes/eglot.el

index 578a90d27ea97541e905dc19d965699f4b2c702b..3bb93dcc4ff013f114fb9a521e9be86648fc2a78 100644 (file)
@@ -1399,7 +1399,7 @@ THINGS are either registrations or unregisterations."
    (eglot--TextDocumentPositionParams)
    `(:context
      ,(if-let (trigger (and (characterp eglot--last-inserted-char)
-                            (cl-find last-input-event
+                            (cl-find eglot--last-inserted-char
                                      (eglot--server-capable :completionProvider
                                                             :triggerCharacters)
                                      :key (lambda (str) (aref str 0))
@@ -2116,8 +2116,8 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp."
                          (keyboard-quit)
                        retval)))))
     (eglot--dcase action
-      (((Command) command arguments)
-       (eglot-execute-command server (intern command) arguments))
+        (((Command) command arguments)
+         (eglot-execute-command server (intern command) arguments))
       (((CodeAction) edit command)
        (when edit (eglot--apply-workspace-edit edit))
        (when command