mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 23:57:21 +03:00
fix: singlebyte char assumption in parse_selection_char
(#548)
Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
parent
3c010ccd34
commit
5ba547cf51
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user