summary refs log tree commit diff stats
path: root/nimsuggest/nimsuggest.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2017-04-06 08:16:26 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-04-06 08:16:26 +0200
commit3d4f68c822a31195da76363c3e775fb21257566d (patch)
tree35f94b77d7c1aacebcf7f68c381a74382b6aace5 /nimsuggest/nimsuggest.nim
parent3374bcb3736379cbf42663ca9ddbc15053b27f3c (diff)
downloadNim-3d4f68c822a31195da76363c3e775fb21257566d.tar.gz
Make nimsuggest quit when pressing Ctrl-D from the command line. (#5662)
Diffstat (limited to 'nimsuggest/nimsuggest.nim')
-rw-r--r--nimsuggest/nimsuggest.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim
index 329e09510..c5858b8f8 100644
--- a/nimsuggest/nimsuggest.nim
+++ b/nimsuggest/nimsuggest.nim
@@ -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)