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 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.
- 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()`.
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.
Recent keeps one entry per size and units, so an A4 made in pixels and an
A4 made in millimeters are two entries. The Recent cards decided which
entry the Preset Details fields came from by name, width and height only,
so every entry of that size showed the units chosen in Preset Details and
the two cards looked the same.
The settings now keep the units of the card or entry they were filled
from, and only the entry in those units shows the chosen units. The
other entries show their own. The dialog's fields list them as
basedOnUnits next to basedOn, so a set from outside the dialog keeps
them; editing any field but the units or the orientation in Preset
Details clears them, and the cards then match the entry in the units
shown.
- A deleted line that can change a test also marks the blank lines after
it up to the next line of code, so a `return` that a deleted skip
comment leaves after blank lines counts as changed.
- A literal `run: |` block is read as one script, so a `{ ... }` group
that spans lines keeps its redirection to `$GITHUB_ENV`.
- An unquoted `NAME=value` word counts only before the command name or
for a command that reads it as an assignment, so
`grep NAME=value file` sets nothing.
- The print exemption reads the command name (`echo`, `printf`) instead
of any earlier word, and a write to `$GITHUB_ENV` needs a redirection
or a `tee`, `Out-File`, `Add-Content` or `Set-Content` that takes it as
its output file. `echo "NAME=x" "$GITHUB_ENV"` only prints.
- A discarded tuple (`let _ = (|| (), { ... });`) is not unwrapped like
grouping parentheses, so its evaluated elements still count.
- A size check guards only the `.all(...)` views over the same local,
and inside one assertion only while nothing between the read and the
`.all(...)` changes the local.
- An index no longer guards full chunks of the indexed item
(`rows[1].as_chunks::<2>().0`): the chain walk follows turbofish
arguments.
- Selector locals and indexed locals may have names with no ASCII
letters (`选`, `数`).
- `all_needs_a_non_empty_guard` is split in two and the size-check tuple
has a type alias, so clippy passes.
* Retype: add a context menu to matching-font rows
A secondary click, or Shift+F10 on the focused row, selects a font row in
the Retype panel without setting its font and opens a menu with Apply Font
(what a click on the row does; off without live text selected), the panel
menu's sample sizes and Reset Retype Panel. The menu closes when the list
or the document changes (G12).
* Rerun CI: the apt package download failed in a test shard's setup
---------
Co-authored-by: ruchirguitar <[email protected]>
Co-authored-by: FredApps <[email protected]>
- A closure or async block bound to `_` inside parentheses
(`let _ = (|| { … });`) is dropped unrun; `(|| { … })()` still runs.
- A length check after an `.all(…)` assertion guards it only when no code
between them changes the local's item count (`xs.push(1)` included).
- A strict bound (`xs.len() > 1`, `1 < xs.len()`) gives one item more
than its count, so `.windows(2)` after `> 1` is guarded.
- An index into the outer collection no longer guards `.all(…)` over an
item read through `.iter_mut()`, `.windows(…)`, `.chunks(…)` or
`.chunks_exact(…)`.
- A grouped argument (`std::mem::take((xs))`) is found as a call that can
change a `&mut` local; `(xs).len()` stays a read.
- A nested `fn` with a non-ASCII name is skipped by the polling scan.
- A non-ASCII container local is followed to its initializer when deciding
whether a conversion can test a user value.
- A `cfg` attribute covers a function whose return type holds `;`
(`-> Result<(), [u8; 2]>`), so `never-run` reports it.
- The test repository directory comes from `tempfile`, created for the
test alone.
An anchor nudge on a pixel-aligned rounded rectangle or polygon that the
pixel-grid snap cancels recorded an undo step and left the shape a live
path, because the anchor edit converts the live shape before the snap
runs. The no-change check now treats that conversion as no change when
the converted live shape matches what the same anchors would give
unmoved, so the shape stays a live rectangle and no undo step is
recorded. A change to the uncut outline or the corner settings still
counts as a change.
* Docs: add a script for editable numbered grids
* Docs: bound the numbered-grid example and validate label numbers
---------
Co-authored-by: FredApps <[email protected]>