mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 06:01:18 +00:00
Docs: the Script Console note shows only after dropped or cut lines
The panel's note and the doc comment on ui.copyScriptConsole now say the count of dropped and cut lines appears only when there are any, and the returned lines count leaves that line out.
This commit is contained in:
@@ -61,8 +61,9 @@ fn notice(c: &Console) -> Option<String> {
|
||||
}
|
||||
|
||||
/// `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<Value, String> {
|
||||
let c = app.session.script_console();
|
||||
let start = c.first_number();
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user