Skip to content

Commit

Permalink
Fix rename function: if no tag selected
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Jan 10, 2013
1 parent 3669dc6 commit 87c1f27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ end
function shifty.rename(tag, prefix, no_selectall)
local theme = beautiful.get()
local t = tag or awful.tag.selected(capi.mouse.screen)

if t == nil then return end

local scr = awful.tag.getscreen(t)
local bg = nil
local fg = nil
Expand Down

0 comments on commit 87c1f27

Please sign in to comment.