Fix awful.tag.add ignoring props.index (#1245)

This commit is contained in:
Michael Beaumont 2016-12-01 22:04:57 +01:00 committed by Daniel Hahler
parent 1d5f70e40d
commit 4cb11b8754
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ function tag.add(name, props)
-- signal is sent
properties.screen = get_screen(properties.screen or ascreen.focused())
-- Index is also required
properties.index = #raw_tags(properties.screen)+1
properties.index = properties.index or #raw_tags(properties.screen)+1
local newtag = capi.tag{ name = name }