Skip to content

Commit

Permalink
make so setting point= doesn't act like its a var when concurrent pri…
Browse files Browse the repository at this point in the history
…nting, and a few others
  • Loading branch information
bgkillas committed May 14, 2024
1 parent 21da51f commit 2cbb7e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ pub fn set_commands(
{
options.graphtype = match r
{
"normal" => GraphType::Normal,
"null" | "none" => GraphType::None,
"normal" | "true" => GraphType::Normal,
"null" | "none" | "false" => GraphType::None,
"depth" => GraphType::Depth,
"flat" => GraphType::Flat,
_ => return Err("bad graph type"),
Expand Down
7 changes: 5 additions & 2 deletions src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ pub fn print_concurrent(
let mut func = unparsed[..n - 1].to_vec();
return if matches!(
func.iter().collect::<String>().as_str(),
"angle"
| "re1col"
"re1col"
| "im1col"
| "re2col"
| "im2col"
Expand All @@ -202,15 +201,19 @@ pub fn print_concurrent(
| "im5col"
| "re6col"
| "im6col"
| "angle"
| "notation"
| "graph"
| "saveto"
| "textc"
| "promptc"
| "imagc"
| "scic"
| "unitsc"
| "bracketc"
| "label"
| "point"
| "points"
)
{
print!(
Expand Down

0 comments on commit 2cbb7e6

Please sign in to comment.