summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu.lua b/gpu.lua
index cb8bc1f..2775ddc 100644
--- a/gpu.lua
+++ b/gpu.lua
@@ -309,7 +309,7 @@ local function runcommand(pos,meta,command)
if #command.data[1] < 1 then return end
local ysize = #command.data
local xsize = #command.data[1]
- if xstart+xsize > buffer.xsize or ystart+ysize > buffer.ysize then return end
+ if xstart+xsize-1 > buffer.xsize or ystart+ysize-1 > buffer.ysize then return end
for y=1,ysize,1 do
if type(command.data[y]) == "table" then
for x=1,xsize,1 do