Pencil: brush.freehand's key list includes leaveSelection

This commit is contained in:
ncic committed 2026-11-17 21:34:16 +01:00
1 parent ada3beb48a
commit c940156ecc
1 file changed
+4 -1
+4 -1
View File
@@ -1116,7 +1116,10 @@ fn brush_freehand_refuses_unknown_keys() {
let spec = crate::cmd::find_command("brush.freehand").unwrap();
let mut keys = crate::cmd::params::accepted_keys(spec.params).expect("the description names every key");
keys.sort_unstable();
assert_eq!(keys, ["brush", "closed", "connect", "extend", "fidelity", "fill", "fit", "keepSelected", "points", "redraw", "style"]);
assert_eq!(
keys,
["brush", "closed", "connect", "extend", "fidelity", "fill", "fit", "keepSelected", "leaveSelection", "points", "redraw", "style"]
);
let mut s = session();
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
select(&mut s, &[a]);