mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 02:04:21 +02:00
tags: don't error when trying to migrate a tag when no tag exists
This commit is contained in:
parent
36951ef8ee
commit
6442ecbecd
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,7 @@ config.keys.global = awful.util.table.join(
|
|||
function()
|
||||
if screen.count() == 1 then return nil end
|
||||
local t = awful.tag.selected()
|
||||
if t == nil then return nil end
|
||||
local s = awful.util.cycle(screen.count(), t.screen + 1)
|
||||
awful.tag.history.restore()
|
||||
t = shifty.tagtoscr(s, t)
|
||||
|
@ -108,6 +109,7 @@ config.keys.global = awful.util.table.join(
|
|||
function()
|
||||
if screen.count() == 1 then return nil end
|
||||
local t = awful.tag.selected()
|
||||
if t == nil then return nil end
|
||||
local o = t.screen
|
||||
local s = awful.util.cycle(screen.count(), o + 1)
|
||||
for _, t in pairs(screen[o]:tags()) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue