From b17e9f4ed03b44cf5786732d3b47729672b4b38f Mon Sep 17 00:00:00 2001 From: Piotr Meyer Date: Tue, 3 Jan 2023 22:00:21 +0100 Subject: [PATCH] Extend config support from F1-F12 to F1-F20, #7666 (#7669) Co-authored-by: Piotr Meyer --- crates/nu-cli/src/reedline_config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/reedline_config.rs b/crates/nu-cli/src/reedline_config.rs index b85c586ce4..5fd023d492 100644 --- a/crates/nu-cli/src/reedline_config.rs +++ b/crates/nu-cli/src/reedline_config.rs @@ -679,9 +679,9 @@ fn add_parsed_keybinding( let fn_num: u8 = c[1..] .parse() .ok() - .filter(|num| matches!(num, 1..=12)) + .filter(|num| matches!(num, 1..=20)) .ok_or(ShellError::UnsupportedConfigValue( - "(f1|f2|...|f12)".to_string(), + "(f1|f2|...|f20)".to_string(), format!("unknown function key: {}", c), keybinding.keycode.span()?, ))?;