From 4bd388ad58ba246dce74aaa41b617b7cad0fff36 Mon Sep 17 00:00:00 2001 From: alaviss Date: Fri, 6 Mar 2020 18:29:28 +0000 Subject: [PATCH] Revert "nimsuggest: don't add CRLF to replies (#13545)" (#13597) This reverts commit a974684b149faa19645f1e18b7b11aa67f169997. The CRLF was to separate between each response, and removing them causes the responses to not be splitted correctly. I didn't notice that it was in a loop when I made the #13545. --- nimsuggest/nimsuggest.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index 31cedb72ec..a48e9443d8 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -252,10 +252,10 @@ proc toSocket(stdoutSocket: Socket) {.gcsafe.} = let res = results.recv() case res.section of ideNone: break - of ideMsg: stdoutSocket.send(res.doc) - of ideKnown: stdoutSocket.send($(res.quality == 1)) - of ideProject: stdoutSocket.send(res.filePath) - else: stdoutSocket.send($res) + of ideMsg: stdoutSocket.send(res.doc & "\c\L") + of ideKnown: stdoutSocket.send($(res.quality == 1) & "\c\L") + of ideProject: stdoutSocket.send(res.filePath & "\c\L") + else: stdoutSocket.send($res & "\c\L") proc toEpc(client: Socket; uid: BiggestInt) {.gcsafe.} = var list = newSList()