diff --git a/src/render.rs b/src/render.rs index f4248ed..6ec4e77 100644 --- a/src/render.rs +++ b/src/render.rs @@ -204,7 +204,7 @@ pub(crate) fn draw_with_controls( app.horizontal = app.horizontal.min(horizontal_limit(app)?); } let layout = if app.split() { "SPLIT" } else { "UNIFIED" }; - let title = format!(" native-diff / {}", app.label); + let title = format!(" diffs / {}", app.label); let right = format!( "{} files · {layout} · {} ", app.doc.files.len(), diff --git a/src/render/tests.rs b/src/render/tests.rs index 20c972a..04b3c43 100644 --- a/src/render/tests.rs +++ b/src/render/tests.rs @@ -83,15 +83,12 @@ fn header_label_keeps_a_gap_before_the_file_count() { let title = header.strip_suffix(&right).unwrap(); assert!(title.ends_with(" "), "width {width}: {header:?}"); assert!(title.trim_end().ends_with('…'), "width {width}: {header:?}"); - assert!(title.starts_with(" native-d"), "width {width}: {header:?}"); + assert!(title.starts_with(" diffs"), "width {width}: {header:?}"); } // A short label stays complete. let mut app = review(&rename(1), "review.patch"); let header = draw(&mut app, 80, 24, None).remove(0); - assert!( - header.starts_with(" native-diff / review.patch "), - "{header:?}" - ); + assert!(header.starts_with(" diffs / review.patch "), "{header:?}"); assert!(!header.contains('…'), "{header:?}"); } diff --git a/tools/freeze_trace.py b/tools/freeze_trace.py index f080ea5..5d2457e 100644 --- a/tools/freeze_trace.py +++ b/tools/freeze_trace.py @@ -23,7 +23,7 @@ def chrome(grid, label, count): width = grid["width"] title = [" "] * width right = f"{count} files · {'SPLIT' if grid['split'] else 'UNIFIED'} · dark " - put(title, 0, f" native-diff / {label}", width - len(right)) + put(title, 0, f" diffs / {label}", width - len(right)) put(title, width - len(right), right, len(right)) hint = " u layout w wrap t theme ? help q quit " footers = [] diff --git a/tools/owner_census.py b/tools/owner_census.py index 81b38d3..9fb83c0 100644 --- a/tools/owner_census.py +++ b/tools/owner_census.py @@ -463,7 +463,7 @@ def controls(binary, ordinary, trace, out): startup = out / "startup" with process(binary, trace, startup) as (session, report): deadline = time.monotonic() + 120 - while not session.frames.screen.display[0].lstrip().startswith("native-diff"): + while not session.frames.screen.display[0].lstrip().startswith(("diffs", "native-diff")): packet = session.read(.01) if packet: list(session.frames.feed(packet[0]))