Skip to content

Commit 8699b74

Browse files
committed
Fix: Add extra check that we are in hy-mode for company
1 parent f483c5b commit 8699b74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hy-jedhy.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ shift-K keybinding that executes `spacemacs/evil-smart-doc-lookup'."
289289
"Implements autocompletion for `hy-mode'."
290290
(interactive (list 'interactive))
291291

292-
(when (hy-shell--live-internal?)
292+
(when (and (string= major-mode "hy-mode")
293+
(hy-shell--live-internal?))
293294
(cl-case command
294295
(prefix (company-grab-symbol))
295296
(candidates (hy-jedhy--prefix-str->candidates prefix-or-candidate-str))

0 commit comments

Comments
 (0)