Make nimsuggest quit when pressing Ctrl-D from the command line. (#5662)

This commit is contained in:
Arne Döring
2017-04-06 08:16:26 +02:00
committed by Andreas Rumpf
parent 3374bcb373
commit 3d4f68c822

View File

@@ -287,6 +287,7 @@ proc replStdin(x: ThreadParams) {.thread.} =
var line = ""
while readLineFromStdin("> ", line):
replStdinSingleCmd(line)
requests.send "quit"
proc replCmdline(x: ThreadParams) {.thread.} =
replStdinSingleCmd(x.address)