lib/vedeu/terminal/buffer.rb in vedeu-0.6.12 vs lib/vedeu/terminal/buffer.rb in vedeu-0.6.13
- old
+ new
@@ -128,11 +128,10 @@
# is valid for this terminal.
#
# @param value [void]
# @return [Boolean]
def within_terminal_boundary?(value)
- value.position.y > 0 && value.position.y <= Vedeu.height &&
- value.position.x > 0 && value.position.x <= Vedeu.width
+ buffer[value.position.y] && buffer[value.position.y][value.position.x]
end
end # Buffer
end # Terminal