lib/vedeu/cursors/cursor.rb in vedeu-0.8.8 vs lib/vedeu/cursors/cursor.rb in vedeu-0.8.9

- old
+ new

@@ -186,11 +186,11 @@ # Return the position of this cursor. # # @return [Vedeu::Geometries::Position] def position - @position = Vedeu::Geometries::Position.coerce([y, x]) + @position = Vedeu::Geometries::Position.new(y, x) end # {include:file:docs/events/by_name/show_cursor.md} # @return [Vedeu::Cells::Cursor] def show @@ -222,12 +222,12 @@ # Determine correct x and y related coordinates. # # @return [Vedeu::Cursors::Coordinate] def coordinate(offset, type) - Vedeu::Cursors::Coordinate.new(name: name, - offset: offset, - type: type) + Vedeu::Cursors::Coordinate.new(geometry: geometry, + offset: offset, + type: type) end # The default values for a new instance of this class. # # @return [Hash<Symbol => Boolean|Fixnum|String|