summaryrefslogtreecommitdiffstats
path: root/svgbob/src/location.rs
diff options
context:
space:
mode:
Diffstat (limited to 'svgbob/src/location.rs')
-rw-r--r--svgbob/src/location.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/svgbob/src/location.rs b/svgbob/src/location.rs
index d339a2b..686a7f3 100644
--- a/svgbob/src/location.rs
+++ b/svgbob/src/location.rs
@@ -29,6 +29,12 @@ impl Location {
Self::jump(direction, 1)
}
+ // this location
+ // TODO: hacky fix these
+ pub fn this()-> Self{
+ Self::jump(Right, 0)
+ }
+
pub fn jump(direction: Direction, step: usize) -> Self {
Location(vec![(direction, step)])
}