forked from 1b-agent/opencadstudio-upstream
Execute command scripts through full input runner
This commit is contained in:
1 parent
8bb6703c70
commit
d426012660
4 files changed
+20
-8
No files matched your search
+3
-1
@@ -134,7 +134,9 @@ fn main() -> iced::Result {
|
||||
Ok(text) => text
|
||||
.lines()
|
||||
.map(str::trim)
|
||||
.filter(|l| !l.is_empty() && !l.starts_with('#'))
|
||||
// Blank script rows are significant: they submit Enter to
|
||||
// the active command (for example, accepting a preview).
|
||||
.filter(|l| !l.starts_with('#') && !l.starts_with(';'))
|
||||
.map(str::to_string)
|
||||
.collect(),
|
||||
Err(e) => {
|
||||
|
||||
Reference in new issue
Block a user