fix nim secret dots interfering with prompt (#16491)
* fix nim secret dots * cleanups
This commit is contained in:
parent
fbc8a40c7a
commit
f9a15dbae9
3 changed files with 9 additions and 4 deletions
|
|
@ -19,9 +19,9 @@ template instLoc(): InstantiationInfo = instantiationInfo(-2, fullPaths = true)
|
|||
template toStdOrrKind(stdOrr): untyped =
|
||||
if stdOrr == stdout: stdOrrStdout else: stdOrrStderr
|
||||
|
||||
template flushDot(conf, stdOrr) =
|
||||
template flushDot*(conf, stdOrr) =
|
||||
## safe to call multiple times
|
||||
let stdOrrKind = stdOrr.toStdOrrKind()
|
||||
let stdOrrKind = toStdOrrKind(stdOrr)
|
||||
if stdOrrKind in conf.lastMsgWasDot:
|
||||
conf.lastMsgWasDot.excl stdOrrKind
|
||||
write(stdOrr, "\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue