ok/jj
1
0
Fork 0
forked from mirrors/jj

(Minor fix) Don't request pager for config edit, only config list

This commit is contained in:
David Barnett 2023-01-15 13:05:22 -06:00 committed by Samuel Tardieu
parent 8ee919dcbb
commit 14982d750e

View file

@ -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());