Skip to content

Commit 12a45d1

Browse files
committed
Merge pull request #810 from vwyu/correct-repl-completions
Add unused string in completions as well.
2 parents 3a11721 + 6fc110d commit 12a45d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

haskell-process.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,11 @@ Returns NIL when no completions found."
306306
(h0 (car s1))) ;; "<limit count> <all count> <unused string>"
307307
(unless (string-match "\\`\\([0-9]+\\) \\([0-9]+\\) \\(\".*\"\\)\\'" h0)
308308
(error "Invalid `:complete' response"))
309-
(let ((cnt1 (match-string 1 h0)))
309+
(let ((cnt1 (match-string 1 h0))
310+
(h1 (haskell-string-literal-decode (match-string 3 h0))))
310311
(unless (= (string-to-number cnt1) (length cs))
311312
(error "Lengths inconsistent in `:complete' reponse"))
312-
cs)))))
313+
(cons h1 cs))))))
313314

314315
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
315316
;; Accessing the process

0 commit comments

Comments
 (0)