mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-07 03:01:32 +00:00
M7: apply the hosted rustfmt corrections to the proofing pane
Apply the six formatting hunks reported by the exact-head Printing/CI runs. No behavior change. cargo xtask ci was attempted locally but cargo is absent; hosted checks must validate this revision.
This commit is contained in:
1 parent
f6f9d65b0e
commit
9e4adaf320
3 files changed
+21
-10
No files matched your search
@@ -999,9 +999,12 @@ fn next_issue(s: &mut Session, v: &Value) -> CmdResult {
|
||||
// Scan forward first, including the rest of the caret's paragraph. A second pass
|
||||
// optionally visits the earlier part; never select the first typo repeatedly in
|
||||
// a single-paragraph story. Dialogs disable wrapping so Ignore Once can finish.
|
||||
for (path, before) in paths.iter().skip(start).map(|path| (path, false)).chain(
|
||||
paths.iter().take(if wrap { start.saturating_add(1) } else { 0 }).map(|path| (path, true)),
|
||||
) {
|
||||
for (path, before) in paths
|
||||
.iter()
|
||||
.skip(start)
|
||||
.map(|path| (path, false))
|
||||
.chain(paths.iter().take(if wrap { start.saturating_add(1) } else { 0 }).map(|path| (path, true)))
|
||||
{
|
||||
for (a, b, i) in para_issues(s, story, path) {
|
||||
if *path == caret.path && (a.off < caret.off) != before {
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user