[Patch] fix typo in awful.tag

2009-08-25 Thread Gregor Best
Hi people,

the attached pach fixes a little typo in awful.tag which leaded to
awful.tag.viewidx ignoring the screen parameter.

Thanks again to psychon for strict.lua, it really rocks :)

-- 
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+

Gregor Best
From 3b05b7b2604a62a364fd6cb210568ca26ca5210c Mon Sep 17 00:00:00 2001
From: Gregor Best g...@intepi.net
Date: Tue, 25 Aug 2009 13:59:34 +0200
Subject: [PATCH] awful.tag: fix typo

Signed-off-by: Gregor Best g...@intepi.net
---
 lib/awful/tag.lua.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in
index 3c9b8e1..cfab6da 100644
--- a/lib/awful/tag.lua.in
+++ b/lib/awful/tag.lua.in
@@ -216,7 +216,7 @@ end
 -- @param i The relative index to see.
 -- @param screen Optional screen number.
 function viewidx(i, screen)
-local screen = scree or capi.mouse.screen
+local screen = screen or capi.mouse.screen
 local tags = capi.screen[screen]:tags()
 local showntags = {}
 for k, t in ipairs(tags) do
-- 
1.6.4



pgp3NBh0TKvpY.pgp
Description: PGP signature


Re: [Patch] fix typo in awful.tag

2009-08-25 Thread Gregor Best
I just noticed a little typo in the fix for the typo :)

-- 
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+

Gregor Best
From f6ee06c869368d1501b21be945b174b4cb228871 Mon Sep 17 00:00:00 2001
From: Gregor Best g...@intepi.net
Date: Tue, 25 Aug 2009 13:59:34 +0200
Subject: [PATCH] awful.tag: fix viewidx()

Signed-off-by: Gregor Best g...@intepi.net
---
 lib/awful/tag.lua.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in
index 3c9b8e1..8ec1bbd 100644
--- a/lib/awful/tag.lua.in
+++ b/lib/awful/tag.lua.in
@@ -216,7 +216,7 @@ end
 -- @param i The relative index to see.
 -- @param screen Optional screen number.
 function viewidx(i, screen)
-local screen = scree or capi.mouse.screen
+local screen = screen and screen.index or capi.mouse.screen
 local tags = capi.screen[screen]:tags()
 local showntags = {}
 for k, t in ipairs(tags) do
-- 
1.6.4



pgpwrj922SSdp.pgp
Description: PGP signature


Re: [Patch] fix typo in awful.tag

2009-08-25 Thread Julien Danjou
At 1251202131 time_t, Gregor Best wrote:
 I just noticed a little typo in the fix for the typo :)

Pushed.

-- 
Julien Danjou
// ᐰ jul...@danjou.info   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// My root password is


signature.asc
Description: Digital signature