Commit 52ae76b
authored
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.1 parent 59fa664 commit 52ae76b
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | | - | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| |||
0 commit comments