diff --git a/crates/ui-egui/src/panels/script_console.rs b/crates/ui-egui/src/panels/script_console.rs index 35529b05f..3a3a32500 100644 --- a/crates/ui-egui/src/panels/script_console.rs +++ b/crates/ui-egui/src/panels/script_console.rs @@ -61,8 +61,9 @@ fn notice(c: &Console) -> Option { } /// `ui.copyScriptConsole {first?, last?}`: copy the console's lines numbered `first` to `last` -/// (both kept lines; default every line, with the notice of dropped and cut lines first) to the -/// clipboard, as the panel shows them → `{lines: n}`. +/// (both kept lines; default every line, with the notice of dropped and cut lines first when the +/// console dropped or cut any) to the clipboard, as the panel shows them → `{lines: n}`, where `n` +/// does not count the notice. pub(crate) fn copy(app: &mut VectorcraftApp, p: &Value) -> Result { let c = app.session.script_console(); let start = c.first_number(); diff --git a/docs/mcp.md b/docs/mcp.md index 42ff19007..ef636d3e3 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -1630,7 +1630,7 @@ Window › Script Console shows the session's script lines, oldest first: each r its time, host calls and slowest commands. Each line shows the run's number and the script's name. Line feeds, carriage returns and the two together break lines, and other control characters show as their Unicode Control Pictures. The console keeps at most 2,048 lines and 1 MiB of text and drops the oldest lines past that. A line longer -than 4,096 bytes, and a script's name longer than 256 bytes, is cut with `…`. A note at the top counts the dropped and cut lines. The panel lays out only the +than 4,096 bytes, and a script's name longer than 256 bytes, is cut with `…`. When the console has dropped or cut any lines, a note at the top counts them. The panel lays out only the rows in view. Click a line to select it and Shift-click to extend the selection. Clear, Copy Selected and Copy All are at the bottom of the panel and in its menu. Output goes on while the panel is closed.