inkle / inkle/ink

Can't correctly divert to a stitch using a parameter

Open
#697 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

This one's a little hard to explain, but the sample code should illustrate the issue.

```
<- goToStitch(-> knot)

=== goToStitch(-> divert)
<- knot.stitch2
<- divert.stitch2

=== knot

= stitch1
1!

= stitch2
2!
```

Expected output:
```
2!
2!
```

Actual output:

```
2!
1!
```

I believe this is caused by Ink diverting to the knot, and falling through to the first stitch, ignoring the request to jump to a stitch. If you add text before the first stitch, Ink will display this instead.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.