mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 18:34:43 +00:00
Make nimsuggest quit when pressing Ctrl-D from the command line. (#5662)
This commit is contained in:
committed by
Andreas Rumpf
parent
3374bcb373
commit
3d4f68c822
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user