diff --git a/stead/goto.lua b/stead/goto.lua index 2a08a42..5f8e9b2 100644 --- a/stead/goto.lua +++ b/stead/goto.lua @@ -181,9 +181,9 @@ iface.fmt = function(self, cmd, st, moved, r, av, objs, pv) -- st -- changed sta end end if moved then - vv = stead.fmt(stead.cat(stead.par("^^", r, av, l, objs, pv), '^')); + vv = stead.fmt(stead.cat(stead.par(stead.scene_delim, r, av, l, objs, pv), '^')); else - vv = stead.fmt(stead.cat(stead.par("^^", l, r, av, objs, pv), '^')); + vv = stead.fmt(stead.cat(stead.par(stead.scene_delim, l, r, av, objs, pv), '^')); end return vv end diff --git a/stead/stead.lua b/stead/stead.lua index 8dd44c9..4060c63 100644 --- a/stead/stead.lua +++ b/stead/stead.lua @@ -2245,7 +2245,9 @@ function new(str) if type(str) ~= 'string' then error("Non string constructor in new.", 2); end - return allocator:new(str); + local v = allocator:new(str); + check_object(deref(v), v); + return v end function delete(v)