cdump / awesome-shifty

Dynamic tagging library for awesome window manager
17 stars 7 forks source link

Fix computation of new tag index with cached one #14

Closed AlexisBRENON closed 9 years ago

AlexisBRENON commented 9 years ago

Re-opening an already closed tag with high index after closing some low index tag leads to an error in the index computation for the table.insert call.

For example:

I fix this by computing idx as the minimum between the cached value and the length of the tags list (plus one).