diff --git a/src/cfg.rs b/src/cfg.rs index 3e6a3fe3b..5b1f2af86 100644 --- a/src/cfg.rs +++ b/src/cfg.rs @@ -874,9 +874,8 @@ fn parse_tap_hold( parse_timeout(&ac_params[1]).map_err(|e| anyhow!("invalid tap-timeout: {}", e))?; let tap_action = parse_action(&ac_params[2], parsed_state)?; let hold_action = parse_action(&ac_params[3], parsed_state)?; - if matches!(tap_action, Action::HoldTap { .. }) || matches!(hold_action, Action::HoldTap { .. }) - { - bail!("tap-hold is not allowed inside of tap-hold") + if matches!(tap_action, Action::HoldTap { .. }) { + bail!("tap-hold does not work in the tap-action of tap-hold") } Ok(sref(Action::HoldTap(sref(HoldTapAction { config,