fix(command_line): preserve argument casing

This commit is contained in:
Karim Jerbi committed 2026-10-18 10:54:24 +01:00
1 parent 43bdd18061
commit ddbfb8f72b
4 files changed
+40 -16

No files matched your search

+10
View File
@@ -1429,6 +1429,16 @@ mod tests {
assert!(m.iter().any(|c| c == "LINE"), "got {m:?}");
}
#[test]
fn submit_uppercases_only_the_command_verb() {
let mut line = CommandLine::new();
line.input = "open /home/u/My.dwg --PluginArg".to_string();
assert_eq!(
line.submit().as_deref(),
Some("OPEN /home/u/My.dwg --PluginArg")
);
}
#[test]
fn aliases_are_hidden_but_their_command_survives() {
// The alias `L` is dropped from suggestions while `LINE` (its target)