Merge pull request #1306 from ghost/plugin-doc-findings

This commit is contained in:
Hakan Seven committed 2026-09-17 06:50:21 +03:00
commit 49afac176b
8 files changed
+124 -64

No files matched your search

+10 -1
View File
@@ -1726,7 +1726,8 @@ impl OpenCADStudio {
// MTEXT bodies), where the typed case is the content and
// Space must stay in the buffer.
let text_with_spaces = self.is_free_text_active();
let s = if text_with_spaces {
let literal = self.command_line.literal_spaces || s.starts_with('>');
let s = if text_with_spaces || literal {
s
} else {
s.to_uppercase()
@@ -9843,6 +9844,14 @@ mod free_text_entry_tests {
);
assert_eq!(app.text_entry_mode(), TextEntryMode::Command);
}
#[test]
fn literal_command_input_preserves_case() {
let mut app = OpenCADStudio::new_for_test();
app.automation_op(r#"{"op":"new"}"#);
let _ = app.update(Message::CommandInput(">Plugin MixedCase".into()));
assert_eq!(app.command_line.input, ">Plugin MixedCase");
}
}
/// Set or clear one bit of `SELECTIONPREVIEW`.