Skip to content

Commit

Permalink
fix: singlebyte char assumption in parse_selection_char (nushell#548)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Holderbach <[email protected]>
  • Loading branch information
micron-mushroom and sholderbach authored Mar 15, 2023
1 parent 3c010cc commit 5ba547c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/menu/menu_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,10 @@ pub fn parse_selection_char(buffer: &str, marker: char) -> ParseResult {
action,
}
}
_ => {
index += 1;
continue;
}
_ => {}
}
}
index += 1;
index += char.len_utf8();
}

ParseResult {
Expand Down

0 comments on commit 5ba547c

Please sign in to comment.