From cb9ba5abc116dd51052fc2b5a78f266c4b158e90 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 4 Dec 2022 06:10:03 -0800 Subject: [PATCH] cli: enable pager on `status` The status output may be long, so the pager can useful. Now that we pass `-F` to the pager by default, it should also be fine to use the pager for short output. For reference, `hg` pages `status` output, but `git` doesn't. --- src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.rs b/src/commands.rs index da12d1c39..7616fca2a 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -1946,6 +1946,7 @@ fn cmd_status( let maybe_checkout = maybe_checkout_id .map(|id| repo.store().get_commit(id)) .transpose()?; + ui.request_pager(); let mut formatter = ui.stdout_formatter(); let formatter = formatter.as_mut(); if let Some(wc_commit) = &maybe_checkout {