summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2016-01-27 17:32:39 -0600
committerDavid McMackins II <contact@mcmackins.org>2016-01-27 17:32:39 -0600
commite79920e31e318aabc64615237fb3303a45481731 (patch)
tree60918d8f11ded4e10e6132259b28ff3974f855ec
parentf15d8f989bfad15d5767d988517db669731b9472 (diff)
Disallow splitting if size less than starting size
-rw-r--r--main.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 64e6ceb..e89b672 100644
--- a/main.lua
+++ b/main.lua
@@ -147,6 +147,10 @@ end
local function makemove()
if wantsplit then
+ if selected.size < 10 then
+ return
+ end
+
local o = getoccupying(targetspace.x, targetspace.y)
if math.abs(targetspace.x - selected.x) == 2 then
if not canabsorb(o, 2) then