Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow LineCursor to be positioned between blocks (#162)
Previously, the LineCursor could only visit next connections, and only if they were not connected to another block. This was to allow the first block to be placed in a statement input, and to make it easier to place new blocks on the bottom of a stack. This change allows the LineCursor to visit ALL next connections, and also to visit unconnected previous connections. This allows the cursor to be positioned between blocks in a stack, as well as on the top connection of a statement input (on the input's connection, since there may or may not be an attached block), as well as on the previous connection of any top-level block that has a previous connection. This change is being made in response to comments from @kmcnaught: - #129 (comment) - #130 (comment) ... but should (like everything else in this repo) be considered experimental and subject to further discussion / evaluation / decisions.
- Loading branch information