Skip to content

Commit 86aad74

Browse files
committed
Fix REPL in precense of :k/:t
1 parent f434137 commit 86aad74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

elisp/shm-ast.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,10 @@ expected to work."
331331
(line-end-position))))
332332
;; Don't activate if we're doing a GHCi command.
333333
(unless (and (string-match "^:" whole-line)
334-
(not (string-match "^:t[^ ]* " whole-line))
335-
(not (string-match "^:k[^ ]* " whole-line)))
334+
(not (string-match "^:[tk] " whole-line)))
336335
(cons (save-excursion
337336
(goto-char haskell-interactive-mode-prompt-start)
338-
(when (looking-at ":[kt][^ ]* ")
337+
(when (looking-at ":[kt] ")
339338
(search-forward " " (point-max) t 1))
340339
(point))
341340
(line-end-position))))))))))

0 commit comments

Comments
 (0)