Skip to content

Commit

Permalink
Fix bug in chord parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo committed Apr 24, 2022
1 parent 37ac387 commit fa81945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ fn parse_action_atom(ac: &str, aliases: &Aliases) -> Result<&'static Action> {
key_stack.push(KeyCode::LShift);
rem = rest;
} else if let Some(rest) = rem.strip_prefix("A-") {
if key_stack.contains(&KeyCode::LShift) {
if key_stack.contains(&KeyCode::LAlt) {
bail!("Redundant \"A-\" in {}", ac)
}
key_stack.push(KeyCode::LAlt);
Expand Down

0 comments on commit fa81945

Please sign in to comment.