mirror of
https://github.com/nushell/nushell.git
synced 2024-11-07 17:14:23 +01:00
Flush out! lines, helps autoview (#2952)
This commit is contained in:
parent
899d324a9c
commit
2e6d836dd1
@ -4,7 +4,11 @@
|
||||
/// and stray printlns left by accident
|
||||
#[macro_export]
|
||||
macro_rules! out {
|
||||
($($tokens:tt)*) => { print!($($tokens)*) }
|
||||
($($tokens:tt)*) => {
|
||||
use std::io::Write;
|
||||
print!($($tokens)*);
|
||||
let _ = std::io::stdout().flush();
|
||||
}
|
||||
}
|
||||
|
||||
/// Outputs to standard out with a newline added
|
||||
|
Loading…
Reference in New Issue
Block a user