aboutsummaryrefslogtreecommitdiff
path: root/src/pointer.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pointer.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pointer.zig b/src/pointer.zig
index 082ce37..70c9a28 100644
--- a/src/pointer.zig
+++ b/src/pointer.zig
@@ -152,8 +152,14 @@ pub const Pointer = struct {
':' => try p.ss.toss.duplicate(),
'\\' => try p.ss.toss.swap(),
'n' => p.ss.toss.clear(),
- // TODO
- '{' => return error.NotImplemented,
+ '{' => {
+ p.ss.begin([2]i64{ p.sox, p.soy }) catch {
+ p.reverse();
+ return null;
+ };
+ p.sox = p.x + p.dx;
+ p.soy = p.y + p.dy;
+ },
// TODO
'}' => return error.NotImplemented,
// TODO