Moving the anchor of a path's only rounded corner into a straight line kept
its radius, but the next anchor move found no corner drawn with an arc and
edited the drawn path instead, dropping the live shape and its radius.
edit_corner_anchors now decides on the stored radii, so the corner rounds
again once a move bends it.
#10622 changed the tool-name assertion in crates/mcp/src/tests.rs, and
test-lint's all-unguarded rule failed main's gate on it: the all() check
had no emptiness check that the rule recognizes. The test now asserts
that tools are defined and that each name is non-empty on its own, then
checks the name's length and characters.
Under the Selection tool, Group Selection and the other tools that do not
edit anchors, the selected paths' anchor squares draw at 4 pt at the
default Size, one point smaller than under Direct Selection, the Pen and
the other anchor-editing tools, which keep 5 pt. Each Size step still
adds or removes one point under every tool. Tool overlays follow the
active tool the same way.
Part of #10720.
A local saved from `xs.len()` or `xs.iter().count()` gives the number
compared with it as the item count. One saved from an item or a flag
(`xs.first().copied().unwrap_or(0)`) shows at least one item, whatever
it is compared with.
A star with a radius on each corner stores its corner list in its
shape settings entry. A 1000-point star's entry is longer than the
4,096-byte read limit, so it was dropped on read and the star lost its
pie angles and arc mode on the next edit. The limit is now 128 KiB,
which holds the longest entry a 1000-point star can write.
Workflow environment scan:
- A command whose standard output is redirected
(`echo "N=x" >/dev/null |& tee -a "$GITHUB_ENV"`) does not set the
variable; the same pipeline without the redirect still does.
- `env` reads assignments only before its child command, so
`env printf '%s' "N=x"` passes the word to `printf`.
- A line break after `|` or `|&` continues the pipeline.
- A line continuation inside a name (`MY_\` and `SAMPLES=x` on the
next line) is removed before names are read; single-quoted text is
kept as it is.
Test reads:
- Closure names are read past the 1 KiB decode window and with
combining marks.
- A unary `-` or `!` stays inside a cast's operand (`-Kind::A as i8`).
- A closure called only from a closure that never runs is not run;
statements are judged last first against the code kept so far.
- An async closure's future passed to `drop` or `std::mem::drop` is not
polled.
- `fallback(xs).len()` is a size check of the call's result, not of
`xs`; `(xs).len() == 2` keeps its exact bound.
- An index shows `k + 1` items (`xs[0]` does not guard
`xs.windows(2)`), and an index after the assertion counts only while
nothing in between changes the collection.
- Turbofish arguments neither end a selector closure nor count as
selector locals.
- A count through `by_ref()` consumes its source.
- A saved count (`let n = xs.len()`) guards only `xs`, with its compared
bound.
- `(status.success() && dest.exists()) == true` is not status-only.
- Brackets inside const arguments are skipped when tracking open
generic lists, so a shift after them stays visible.
- Every grouping layer around a constructor is unwrapped before a field
is read.
- A raw identifier (`r#loop`) does not open an iterator block.
A nudge that the pixel-grid snap took back still recorded an undo step and
left a rounded live rectangle a live path when an object selected whole
was moved together with direct-selected anchors, because the no-change
check ran only for anchor-only selections. The check now also covers
objects selected whole. The path.moveAnchors params text and the Live
Corners progress entry now state the pixel-grid case as docs/mcp.md does.
The conflicts in xtask/src/test_lint.rs keep main's shell command
reader (shell_command, command_word, writes_env_file with its later
redirection check), main's first-item roots, indexed_local and
name_byte/local_name, and this branch's grouped receivers, unused
closure check, status_condition and tuple-literal fields.
The merged scanner also closes these gaps:
- A quoted NAME=value counts only when the setter is the command
itself, not an argument (`cargo test -- env "NAME=x"`);
`/usr/bin/env "NAME=x" cargo test` still counts.
- Bash `|&` continues the pipeline, and the environment-file writer is
the command after the last pipe outside quotes, so
`tee 'backup|copy' "$GITHUB_ENV"` is found. `>|` redirects like `>`.
- A backslash-newline continuation leaves the word state as it was, so
a `#` after `true; \` and a line break starts a comment.
- name_at reads past whitespace longer than 1 KiB, such as a long
masked comment before a binding or nested fn name.
- An indexed item, or an iterator taken from it (`rows[1].by_ref()`),
that is the `.all()` receiver in the assertion does not guard it.
- A selector after a closure (`r.items(|i| i > 0, i)`) is tracked:
closure parameters are hidden only inside the closure's body.
Non-ASCII selector locals (`café`) are tracked through the mutation
check.
- A count produced by draining its source (`xs.drain(..).count()`)
guards nothing.
- The type of a qualified path in a loop iterator
(`<Producer as Make<{ 1 + 1 }>>::items()`) is not taken as the loop
body.
A whole star draws every point, so its pie angles no longer stop it
from being stored as a live star. Angles configured on any whole shape
are stored with it, so a later arc mode change uses them.
A corner list longer than the old corner count drops its entries past
the last corner before it is spread, so the corners a new point or
side count adds are sharp and keep the default kind.
- Only a hunk that removes blank lines and line comments reaches past
the next line to the code after it, so deleting an import before an
unchanged test no longer marks that test as changed.
- A replacement hunk that removes a skip comment inside a test also
marks the code after it, so the `return` the comment explained counts
as changed.
- A folded `run: >2-` block uses its indentation indicator as the
content indentation.
- An assignment right after `&&`, `|`, `;` or `(` with no space before
it (`true&&NAME=x cargo test`) is read as one.
- Only a redirection of standard output (`>>`, `1>>`, `&>>`) to
`$GITHUB_ENV` writes the printed assignment; `2>>` does not.
- A redirection after `;`, `&&`, `&` or a line break belongs to the next
command and does not replace the write to the environment file.
- A size check joined to an `.all(...)` by `||` does not guard it.
- A numeric index or a first-item unwrap guards only an `.all(...)` over
the local it reads (`expected[1]` does not guard `actual.iter()`).
- A field of a tuple literal (`let pair = (5, Kind::A); pair.1`) resolves
to its element, as a field of a tuple struct does.
The framework names New Document's name field plain Name. While the
dialog is open, the window's shell now shows its dialogs under a words
overlay that names the field Document Name, as it already retitles the
Print dialog. dialogs::shell_words combines both overlays.
This is temporary: storytold/craft-libs#5291 renames the field in the
pattern and also gives Save Document Preset its save icon, which the
pinned framework does not let VectorCraft change. The pin bump that
takes #5291 removes the overlay.
- A deletion's changed range runs past lines that hold only a block
comment, so a return after `/* spacer */` still counts as changed.
- A `run: >` block is folded as YAML folds it before its assignments are
read, and a `run:` block ends at the first line indented no deeper than
the `run` key, so a sibling `env:` key is read as a mapping.
- A later redirection of standard output (`>> "$GITHUB_ENV" > setup.log`)
replaces the write to the environment file.
- A strict length bound past `usize::MAX` guards no `.all(...)` and no
longer overflows.
- An element indexed out of a local with a non-ASCII name, or out of a
nested container, holds the element's user value for `.clone()`.
Workflow environment scan:
- A quoted `NAME=value` counts as an assignment only after a command
that sets variables (`export`, `declare`, `env`, `/usr/bin/env` and
similar) or in a pipeline that writes `$GITHUB_ENV`, not as an
argument such as `cargo test -- "NAME=x"`.
- Bash `|&` is one pipe, so `echo "NAME=x" |& tee -a "$GITHUB_ENV"`
writes the environment file.
- A `#` after an escaped space (`a\ #b`) stays in its word and does not
start a comment.
Test reads:
- `split_args` does not close generic arguments at a `->` arrow.
- Binding names and nested `fn` names read non-ASCII letters
(`_vérifier`), so an uncalled closure or nested function is excluded.
- A grouped size receiver (`(xs).len()`) is checked for later shrinking.
- An indexed item that is the direct `.all()` receiver
(`rows[1].all(..)`) does not guard that assertion; an earlier access
still shows the collection has items.
- Selector locals before a bitwise `|` are tracked; closure parameters
are excluded by their parameter list and scope, and the scan no
longer slices inside a non-ASCII character.
- A count whose initializer shrinks its source after the size read
(`xs.len() + { xs.clear(); 0 }`) guards nothing.
- `&&status.success()` is a double borrow, not a conjunction.
- Generic tuple constructors (`Pair::<Input>(..)`) resolve their fields.
- A braced const argument in a loop iterator's turbofish is not taken as
the loop body.
The selection fill eligibility entry now says that its "nothing else
there" rule covers ordinary picking and points to the #9175 entry for
Select Behind. The #9175 entry no longer says Select Behind lists
unfilled paths after painted ones: it steps through them with the other
objects under the pointer, as `object_behind` does through `leaves_at`.
The edit target of the selection fields (`selection_target`) named the
document, the selected objects and the symbol part. File › Revert and
Undo or Redo replace the document's content, after which the same node
id can name another object, and the target did not change: a value
typed and not yet committed into Opacity (Transparency panel, Control
bar, Properties) or into Image Trace's Divider and settings sliders
stayed, and Enter applied it to the reverted or restored document when
the same id was selected again.
The target now also holds the document's revert and history restore
counts. It lists the selected objects in id order, so the same objects
selected in another order keep the value. The Opacity target of the
Transparency panel and the Control bar names the first selected object
with the active Appearance row, whose stack holds that row.
On the Recent tab the heading read "Blank Document Presets (n)", the
same as the preset categories, and Saved was the last tab, after every
category. Before the move to the shared dialog, Recent had its own
heading and Saved came right after it.
The dialog now turns on the shared dialog's recent_items and
saved_after_recent options: Recent reads "Your Recent Items (n)" over
four cards to a row, and the tabs read Recent, Saved, then the
categories.