From ecc930dbe08f863bcffad6c578ec3b715fdcb39e Mon Sep 17 00:00:00 2001 From: Arvydas Sidorenko Date: Thu, 14 Jun 2012 22:48:18 +0200 Subject: [PATCH] Replaced deprecated math.mod to math.fmod Signed-off-by: Arvydas Sidorenko Signed-off-by: Uli Schlachter --- lib/awful/client.lua.in | 2 +- lib/awful/completion.lua.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index f5d87049..1a86634c 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -735,7 +735,7 @@ function idx(c) -- minimum number of clients per column local percol = math.floor(nother / ncol) -- number of columns with an extra client - local overcol = math.mod(nother, ncol) + local overcol = math.fmod(nother, ncol) -- number of columns filled with [percol] clients local regcol = ncol - overcol diff --git a/lib/awful/completion.lua.in b/lib/awful/completion.lua.in index 776389c2..aa32292e 100644 --- a/lib/awful/completion.lua.in +++ b/lib/awful/completion.lua.in @@ -169,7 +169,7 @@ function generic(text, cur_pos, ncomp, keywords) -- if no text had been typed yet, then we could start cycling around all -- keywords with out filtering and move the cursor at the end of keyword if text == nil or #text == 0 then - ncomp = math.mod(ncomp - 1, #keywords) + 1 + ncomp = math.fmod(ncomp - 1, #keywords) + 1 return keywords[ncomp], #keywords[ncomp] + 2 end @@ -187,7 +187,7 @@ function generic(text, cur_pos, ncomp, keywords) end -- cycle around all matches - ncomp = math.mod(ncomp - 1, #matches) + 1 + ncomp = math.fmod(ncomp - 1, #matches) + 1 return matches[ncomp], #matches[ncomp] + 1, matches end