nimsuggest: don't add CRLF to replies (#13545)

This is already sent by replTcp after the message is sent.
This commit is contained in:
alaviss 2020-03-04 14:56:40 +00:00 • committed by GitHub
commit a974684b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,10 +252,10 @@ proc toSocket(stdoutSocket: Socket) {.gcsafe.} =
let res = results.recv() let res = results.recv()
case res.section case res.section
of ideNone: break of ideNone: break
of ideMsg: stdoutSocket.send(res.doc & "\c\L") of ideMsg: stdoutSocket.send(res.doc)
of ideKnown: stdoutSocket.send($(res.quality == 1) & "\c\L") of ideKnown: stdoutSocket.send($(res.quality == 1))
of ideProject: stdoutSocket.send(res.filePath & "\c\L") of ideProject: stdoutSocket.send(res.filePath)
else: stdoutSocket.send($res & "\c\L") else: stdoutSocket.send($res)
proc toEpc(client: Socket; uid: BiggestInt) {.gcsafe.} = proc toEpc(client: Socket; uid: BiggestInt) {.gcsafe.} =
var list = newSList() var list = newSList()