awful: indentation fix
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ebb9aba4e7
commit
395e4b46d4
|
@ -601,16 +601,16 @@ function layout.inc(layouts, i)
|
||||||
local number_of_layouts = 0
|
local number_of_layouts = 0
|
||||||
local rev_layouts = {}
|
local rev_layouts = {}
|
||||||
for i, v in ipairs(layouts) do
|
for i, v in ipairs(layouts) do
|
||||||
rev_layouts[v] = i
|
rev_layouts[v] = i
|
||||||
number_of_layouts = number_of_layouts + 1
|
number_of_layouts = number_of_layouts + 1
|
||||||
end
|
end
|
||||||
if t then
|
if t then
|
||||||
local cur_layout = layout.get()
|
local cur_layout = layout.get()
|
||||||
local new_layout_index = (rev_layouts[cur_layout] + i) % number_of_layouts
|
local new_layout_index = (rev_layouts[cur_layout] + i) % number_of_layouts
|
||||||
if new_layout_index == 0 then
|
if new_layout_index == 0 then
|
||||||
new_layout_index = number_of_layouts
|
new_layout_index = number_of_layouts
|
||||||
end
|
end
|
||||||
t.layout = layouts[new_layout_index]
|
t.layout = layouts[new_layout_index]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -619,7 +619,7 @@ end
|
||||||
function layout.set(layout)
|
function layout.set(layout)
|
||||||
local t = tag.selected()
|
local t = tag.selected()
|
||||||
if t then
|
if t then
|
||||||
t.layout = layout
|
t.layout = layout
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue