Skip to content

Commit 5d60bdf

Browse files
committed
Accept anything on RET when there's no match in module completion
1 parent 376449c commit 5d60bdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haskell-complete-module.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
(unless (string= "" pattern)
8080
(setq pattern (substring pattern 0 -1))))
8181
((string= key "RET")
82-
(setq result (car candidates)))
82+
(setq result (or (car candidates)
83+
pattern)))
8384
((string= key "<left>")
8485
(setq candidates
8586
(append (last candidates)

0 commit comments

Comments
 (0)