From 14982d750e52370428195363104c58148a681f0c Mon Sep 17 00:00:00 2001 From: David Barnett Date: Sun, 15 Jan 2023 13:05:22 -0600 Subject: [PATCH] (Minor fix) Don't request pager for `config edit`, only `config list` --- src/commands/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 8fb865b81..bda256c41 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -1028,13 +1028,13 @@ fn cmd_config( command: &CommandHelper, subcommand: &ConfigSubcommand, ) -> Result<(), CommandError> { - ui.request_pager(); let settings = command.settings(); match subcommand { ConfigSubcommand::List { name, include_defaults, } => { + ui.request_pager(); let name_path = name .as_ref() .map_or(vec![], |name| name.split('.').collect_vec());