mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
don't read from stdin for integration tests
This commit is contained in:
parent
cb0440be85
commit
4e34ee7d2e
@ -180,7 +180,7 @@ pub fn new(args: Args, config: Config) -> Result<Self, Error> {
|
||||
let (view, doc) = current!(editor);
|
||||
align_view(doc, view, Align::Center);
|
||||
}
|
||||
} else if stdin().is_tty() {
|
||||
} else if stdin().is_tty() || cfg!(feature = "integration") {
|
||||
editor.new_file(Action::VerticalSplit);
|
||||
} else if cfg!(target_os = "macos") {
|
||||
// On Linux and Windows, we allow the output of a command to be piped into the new buffer.
|
||||
|
Loading…
Reference in New Issue
Block a user