aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-04-27 04:48:17 +0000
committerSkyler Hawthorne2022-06-19 03:57:47 +0000
commit4e34ee7d2e9dcf9b166abce20f5b2dd083ad2006 (patch)
treed4ad33765b4e32b6d8e514a8bf44ae173369c547
parentcb0440be85338b2669a8341dee2861ea53da7ef7 (diff)
don't read from stdin for integration tests
-rw-r--r--helix-term/src/application.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index f3aa955f..c611a691 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -180,7 +180,7 @@ impl Application {
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.