Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

acp_thread: Skip git pagination on windows (#39229)

Lukas Wirth074cb88036e1
diff --git a/crates/acp_thread/src/acp_thread.rs b/crates/acp_thread/src/acp_thread.rs
index 2682576f8d1..9cd277f62e6 100644
--- a/crates/acp_thread/src/acp_thread.rs
+++ b/crates/acp_thread/src/acp_thread.rs
@@ -1968,9 +1968,8 @@ impl AcpThread {
let env = cx.spawn(async move |_, _| {
let mut env = env.await.unwrap_or_default();
- if cfg!(unix) {
- env.insert("PAGER".into(), "cat".into());
- }
+ // Disables paging for `git` and hopefully other commands
+ env.insert("PAGER".into(), "".into());
for var in extra_env {
env.insert(var.name, var.value);
}