about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/commands/on_enter.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts
index ac582b42303..c636234dadb 100644
--- a/editors/code/src/commands/on_enter.ts
+++ b/editors/code/src/commands/on_enter.ts
@@ -8,7 +8,7 @@ async function handleKeypress(ctx: Ctx) {
     const editor = ctx.activeRustEditor;
     const client = ctx.client;
     if (!editor) return false;
-    if (!client) return false;
+    if (!editor || !client) return false;
 
     const request: lc.TextDocumentPositionParams = {
         textDocument: { uri: editor.document.uri.toString() },