awful.placement: Fix `next_to` logic. (#2130)

Fix #2128
This commit is contained in:
Emmanuel Lepage Vallée 2017-12-03 15:05:19 -05:00 committed by GitHub
parent 73b70d34fa
commit 19fd21111a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -1351,10 +1351,8 @@ function placement.next_to(d, args)
local preferred_positions = {}
if #(args.preferred_positions or {}) then
for k, v in ipairs(args.preferred_positions) do
preferred_positions[v] = k
end
for k, v in ipairs(args.preferred_positions or {}) do
preferred_positions[v] = k
end
local dgeo = geometry_common(d, args)