summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-04-10 13:27:43 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-04-10 13:27:43 -0400
commitad84b1068494872db2166bd81ce1f3831ead2c6b (patch)
tree59b2bf8a012eb2c0887fe5d35f526b17c992797d /src
parent0c603c234f01567f731f07d7051ea92407d2e840 (diff)
Small fix for command line options
Diffstat (limited to 'src')
-rw-r--r--src/texec/eval.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/texec/eval.go b/src/texec/eval.go
index 3d73ec1..fa187ef 100644
--- a/src/texec/eval.go
+++ b/src/texec/eval.go
@@ -1233,8 +1233,9 @@ func EvalTNSL(root *TModule, args string) TVariable {
for j := 0; j < len(dat); j++ {
tmp = append(tmp, dat[j])
}
-
- saif = append(saif, tmp)
+ if len(tmp) > 0 {
+ saif = append(saif, tmp)
+ }
}
targ := TVariable {